Error with float number
See original GitHub issueMy mask setting is as follows. prefix="R$ "
mask="separator.2"
thousandSeparator="."
decimalMarker=","
When I load a float value equal to 2896.99 -expected value = 2.896,99 -but the displayed value = 289.699
what would be the solution for my case?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:12 (4 by maintainers)
Top Results From Across the Web
Floating-point error mitigation - Wikipedia
Floating-point error mitigation is the minimization of errors caused by the fact that real numbers cannot, in general, be accurately represented in a...
Read more >Floating point error in Python - GeeksforGeeks
It's a problem caused when the internal representation of floating-point numbers, which uses a fixed number of binary digits to represent a ...
Read more >What Every Computer Scientist Should Know About Floating ...
Another way to measure the difference between a floating-point number and the real number it is approximating is relative error, which is simply...
Read more >Floating point error - Matthew Brett on github
The IEEE standard for floating point specifies that the result of any floating point operation should be correct to within the rounding error...
Read more >15. Floating Point Arithmetic: Issues and Limitations — Python ...
Unfortunately, most decimal fractions cannot be represented exactly as binary fractions. A consequence is that, in general, the decimal floating-point numbers ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

You can specify decimalMarker. e.g.
If you now paste in 2896.99, it will display in the input as 2,896.99 and it’s actual model value will remain as 2896.99
Same issue