List of QB64 Constants?
#1
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).


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
Reply


Messages In This Thread
List of QB64 Constants? - by dcromley - 05-05-2022, 04:49 PM
RE: List of QB64 Constants? - by Pete - 05-05-2022, 05:31 PM
RE: List of QB64 Constants? - by bplus - 05-05-2022, 05:40 PM
RE: List of QB64 Constants? - by Pete - 05-05-2022, 05:46 PM
RE: List of QB64 Constants? - by dcromley - 05-05-2022, 08:31 PM
RE: List of QB64 Constants? - by SMcNeill - 05-06-2022, 07:53 AM



Users browsing this thread: 5 Guest(s)