Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

17.99 changed to 17.89 #29

Open
jobanorth opened this issue Mar 25, 2019 · 3 comments
Open

17.99 changed to 17.89 #29

jobanorth opened this issue Mar 25, 2019 · 3 comments

Comments

@jobanorth
Copy link

any other number like 17.33, 12.56, 74.55 work, it only happens with 17.99 ==> 17.89
any idea ?

@jobanorth
Copy link
Author

remove the Math.floor on line #112 and it worked.

@jonathanayoub
Copy link

I'm also getting issues with this. Examples: 18709.44 [converts to 18709.43], 2160.22 [converts to 2160.21],
2500.7 [converts to 2500.69]

@jonathanayoub
Copy link

If this code is used var number = util.toFloat(value).toFixed(2) it fails a unit test because 0.999 rounds up to 1.00

"formatAsCurrency should parse currencies from the view FAILED" Expected '1.00' to be '0.99'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants