« * K @loige.co

Luciano Mammino 📙 Node.js Design Patterns @loige.co

2026-11-08 16:03 UTC

[129.99, 49.99, 349.95].reduce((a, b) => a + b) // 529.9300000000001 Math.sumPrecise([129.99, 49.99, 349.95]) // 529.93 It rounds once at the end, instead of after every addition.

A reply in a thread.

7 likes, 0 reposts, 1 replies

3 Next post4 More from @loige.coBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup