-
-
Notifications
You must be signed in to change notification settings - Fork 34.6k
Open
Description
Version
v25.6.0 / v25.4.0
Platform
Docker local MacOs.
Docker image:
node:latest / node:25.4.0
Edit:
It seems to work as expected when doing:
docker run -it --rm node:25.6.0
It breaks on my system (Apple M1 Pro/ MACOs15.5 (24F74)) when doing:
docker run --platform linux/amd64 -it --rm node:25.6.0
Subsystem
No response
What steps will reproduce the bug?
Just run the node command in CLI and try parsing a float.
root@17ebd2a1a753:/app# node
Welcome to Node.js v25.6.0.
Type ".help" for more information.
JSON.parse('{"x": 10.3342}')
{ x: 10 }
How often does it reproduce? Is there a required condition?
N/A
What is the expected behavior? Why is that the expected behavior?
Should retain the decimals
JSON.parse('{"x": 10.3342}')
{ x: 10.3342 }
What do you see instead?
Converts into Integer:
JSON.parse('{"x": 10.3342}')
{ x: 10 }
Additional information
I think it is only on v25. v24 is working as intended.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels