Large numbers
#5
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.

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
Reply


Messages In This Thread
Large numbers - by james2464 - 08-29-2022, 08:28 PM
RE: Large numbers - by SMcNeill - 08-29-2022, 08:31 PM
RE: Large numbers - by james2464 - 08-29-2022, 08:39 PM
RE: Large numbers - by james2464 - 08-30-2022, 01:56 AM
RE: Large numbers - by SMcNeill - 08-30-2022, 03:35 AM
RE: Large numbers - by james2464 - 08-30-2022, 12:40 PM
RE: Large numbers - by DSMan195276 - 08-30-2022, 04:20 AM
RE: Large numbers - by james2464 - 08-30-2022, 01:00 PM
RE: Large numbers - by mdijkens - 08-30-2022, 11:07 AM
RE: Large numbers - by james2464 - 08-30-2022, 12:11 PM



Users browsing this thread: 5 Guest(s)