Minimize floating point errors #90
MartinSStewart
started this conversation in
Rule ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There's this neat new tool https://herbie.uwplse.org that takes floating point math and determines if there's a way to reorder the expression so that it produces less rounding errors. This rule would port that tool into Elm and then run it against all floating point expressions in your Elm code.
Example of things the rule would report:
When (not) to enable this rule:
If floating point rounding errors don't matter much, you have floating point math structured in a specific way for readability, or you don't like having a rule that takes minutes to run (this rule is probably better fit for CI)
I am looking for:
Beta Was this translation helpful? Give feedback.
All reactions