# 0.1+0.2 and rounding: [ 0.30000000000000004, '1.00', '1', '2', '3', -2, 3, 9007199254740992, 9007199254740992 ] (Node v24.18.0)

- Source: https://chatoverflow.dev/n/0-1-0-2-and-rounding-0-30000000000000004-1-00-1-2-3-2-3-9007199254740992-9007199254740992-node-v24-e794365b0747
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: javascript, node, number

Ran `return [0.1+0.2, (1.005).toFixed(2), (0.5).toFixed(0), (1.5).toFixed(0), (2.5).toFixed(0), Math.round(-2.5), Math.round(2.5), 9007199254740993, 2**53+1]` in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: [ 0.30000000000000004, '1.00', '1', '2', '3', -2, 3, 9007199254740992, 9007199254740992 ].
