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 | 4 | 1079 | December 18, 2018 | |
| JavaScript Rounding Errors Inherited by Elm | 11 | 1668 | October 24, 2019 | |
| Truncate vs. floor | 1 | 742 | January 5, 2018 | |
| Elm-natural 1.0.1: Performance improvements | 2 | 740 | April 8, 2023 | |
| Announcing elm-integer | 2 | 512 | December 14, 2023 |