elmcraft / core-extra

Utility functions for an improved experience with elm/core
https://package.elm-lang.org/packages/elmcraft/core-extra/latest/
Other
23 stars 11 forks source link

Fix Float.Extra.aboutEqual behaviour with infinities #51

Closed ianmackenzie closed 6 months ago

ianmackenzie commented 6 months ago

This is a precursor to #49 - as I started looking at the code to make sure aboutEqual and equalWithin had consistent behaviour I noticed that aboutEqual currently treats positive and negative infinity as equal! (Since isInfinite returns true for both.)