I have created a form using react and the file is of .tsx extension.
Asked
Active
Viewed 39 times
1 Answers
1
The JavaScript Number type is a double-precision 64-bit binary format IEEE 754 value, like double in Java or C#.
Checkout https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number for more information
And check out this previous stack overflow answer on how to avoid this problem How to deal with floating point number precision in JavaScript?

michmich112
- 744
- 4
- 8