@zachleat@fediverse.zachleat.com
Post #1754478
2026-04-16 15:38 UTC
Replies (6)
-
@AmeliaBR@front-end.social 2026-04-16 15:44
@zachleat Coming soon to a JS API near you: Math.sumPreciserFinalv2UseThisOne()
-
@ardouglass@mastodon.social 2026-04-16 16:01
@zachleat I love that due to backwards compatibility we can’t simply fix the plus sign. Some library out there (probably MooTools) certainly used floating point math errors in a load bearing way that would cause the web to fall apart if changed.
-
@ardouglass@mastodon.social 2026-04-16 16:07
@zachleat wait… “This still cannot avoid the 0.1 + 0.2 precision problem”
-
@chriskirknielsen@front-end.social 2026-04-16 16:17
@zachleat Dang I thought the last scenario would be solved by this. 😬 Should have been called `sumLossless`, given that it is not actually precise for that typical `.1+.2` example. Ah well, what can you do!
-
@loucyx@mastodon.social 2026-04-16 17:07
@zachleat OMG this is great! I guess is time to retire my library then 😂 https://coven.to/math
-
@mottokrosh@social.mottokrosh.com 2026-04-17 14:34
@zachleat Math.sumVibe() when?