JavaScript Rounding Errors Inherited by Elm

As people have mentioned, this is a problem with floating point. That said, it isn’t unique to floating point either. Even if you do math with a decimal library you’ll get rounding errors. Consider 10 * (2/3) = 0.6666666...and forever except we can’t represent an infinite number of 6’s so it gets rounded to something like 0.6666667.