Detect division by zero: Difference between revisions
→EasyLang: Add -inf checking in EasyLang example
Jazzedpineda (talk | contribs) (Added EasyLang implementation) |
Jazzedpineda (talk | contribs) (→EasyLang: Add -inf checking in EasyLang example) |
||
Line 758:
func checkDivZero a b . .
result$ = a / b
if result$ = "-nan" or result$ = "inf" or result$ = "-inf"
print "Found division by zero (" & a & " / " & b & ")"
.
|