Data update

This commit is contained in:
Ingy döt Net 2023-09-16 17:28:03 -07:00
parent 5af6d93694
commit 796d366b97
455 changed files with 7413 additions and 1900 deletions

View file

@ -1,8 +1,8 @@
proc checkDivZero a b . .
result$ = a / b
if result$ = "-nan" or result$ = "inf" or result$ = "-inf"
print "Found division by zero (" & a & " / " & b & ")"
func checkDivZero a b .
r = a / b
if r = number "nan" or r = number "inf" or r = number "-inf"
return 1
.
.
call checkDivZero 5 7
call checkDivZero 1 0
print checkDivZero 5 7
print checkDivZero -1 0