precision issues with floating-point
-
0.0166666667 * 60 = 1
but the form is giving result 1.000000002
why this extra zeros?
I asked to AI and he says: It seems like you’re encountering precision issues with floating-point arithmetic in JavaScript. The value0.0166666667
is not exactly representable in the binary floating-point format that JavaScript uses, leading to small precision errors. please check this.
Note: I don’t want to use round, ceil, floor, etc in every form.
This type of issue could be solved through the plugin backend (May be, I am not sure).
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘precision issues with floating-point’ is closed to new replies.