Data update
This commit is contained in:
parent
5af6d93694
commit
796d366b97
455 changed files with 7413 additions and 1900 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue