07-26-2024, 04:14 PM
strange programming system. i ran my own test.
the message is not printed in program run. change function to INT, however and it is "fixed." also note that in both cases, the function result printed is "1E+14". it might be i'm running qb64 phoenix 3.11 and should upgrade and try again. then i could put double ampersand on the two variables declared _integer64.
in one program i wrote. i was forced to do a lot like pete. turn it into string and check to see if there's decimal point or "E-" or "D-". this was to create lisp-like code which only knows "E" instead of "D" for scientific notation.
Code: (Select All)
DIM nf AS SINGLE, ni AS _INTEGER64, tol AS _INTEGER64
nf = 10000.0
ni = 10000
tol = 1E+10
IF FIX(nf * tol) = ni * tol THEN PRINT "They are basically equal."
PRINT FIX(nf * tol)
PRINT ni * tol
the message is not printed in program run. change function to INT, however and it is "fixed." also note that in both cases, the function result printed is "1E+14". it might be i'm running qb64 phoenix 3.11 and should upgrade and try again. then i could put double ampersand on the two variables declared _integer64.
in one program i wrote. i was forced to do a lot like pete. turn it into string and check to see if there's decimal point or "E-" or "D-". this was to create lisp-like code which only knows "E" instead of "D" for scientific notation.