Why node 24 broke exponent arithmetic? #5124
-
|
I have a programming langauge written in JavaScript called LIPS. In Node 24 automated test broke: Old value was 1.414213562373095 new value is 1.4142135623730951 I traced the code and it just executes Are there any changes in precision for the numbers? What was the reason behind this breaking change? Tested in Node I'm not sure which version break the code. The CI/CD still run Node 20. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Floating point precision may change in different major versions (due to V8). This is expected behavior, see https://en.wikipedia.org/wiki/Floating-point_arithmetic |
Beta Was this translation helpful? Give feedback.
Floating point precision may change in different major versions (due to V8). This is expected behavior, see https://en.wikipedia.org/wiki/Floating-point_arithmetic