Detect division by zero: Difference between revisions

→‎EasyLang: Add -inf checking in EasyLang example
(Added EasyLang implementation)
(→‎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 & ")"
.
175

edits