Make E2 error on division by zero #2723
thevurv
started this conversation in
Suggestions
Replies: 1 comment
-
Divide by 0 generates inf and 0/0 generates nan. You'd need to do this for every math function that can return error floats as well. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I see no reason for why users would want to keep a nan type, and it just leaves open potential exploits and whatnot as in c7cfcaa.
So I propose one of these things to happen on division by zero:
@strict
, on division by zero@strict
, or return0
without (gates do this)Would need to deprecate
isnan
since it would never hold true.Beta Was this translation helpful? Give feedback.
All reactions