05-05-2022, 04:49 PM
Is there a list of QB64 constants, like _PI=3.14..?
Also, 1/0 gives INF and -1/0 gives -INF. Are there INF and -INF constants?
This code is just some experimenting (some garbage in the 2nd line of output - no problem).
Also, 1/0 gives INF and -1/0 gives -INF. Are there INF and -INF constants?
This code is just some experimenting (some garbage in the 2nd line of output - no problem).
Code: (Select All)
DefLng I
DefSng F
On Error GoTo zerr
Print _Pi
fhi = 1 / 0
flo = -1 / 0
Print "div by 0 - float:", fhi; flo
ihi = 1 / 0
ilo = -1 / 0
Print "div by 0 - long integer:", ihi, ilo
Print "Sqr(-1)= "; Sqr(-1)
zerr:
Print Chr$(13) + "Err"; Err; "in line"; _ErrorLine
End