Yes, there are other ways to approach my particular problem but the link you provided includes the method I’m using. My specific use case is orthogonal to the problem of a potentially fundamental bug in a basic arithmetic function. The appearance of a pattern suggests to me that the error is not simply “floating point math is quirky” but rather something that can be fixed. I would create an issue on github to address this if others can confirm the bug.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Bug in trig functions | 3 | 1092 | December 8, 2018 | |
| JavaScript Rounding Errors Inherited by Elm | 10 | 1698 | October 14, 2019 | |
| Truncate vs. floor | 1 | 750 | January 5, 2018 | |
| Elm-natural 1.0.1: Performance improvements | 1 | 761 | March 29, 2023 | |
| Announcing elm-integer | 1 | 518 | December 4, 2023 |