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. |
Answered by
avivkeller
Dec 28, 2025
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 |
0 replies
Answer selected by
avivkeller
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to 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