08-30-2022, 03:35 AM
DIM p(s) AS DOUBLE and you avoid the trouble.
This may be a glitch in QB64 when dividing by a SINGLE type here. It'll need to be looked into.
This may be a glitch in QB64 when dividing by a SINGLE type here. It'll need to be looked into.
Code: (Select All)
Dim x As _Integer64, y As Double
a&& = 600851475143
p! = 347
x = Int(a&& / p!)
y = a&& / p!
Print x
Print y
p# = 347
x = Int(a&& / p#)
y = a&& / p#
Print x
Print y