Division problems
Posted: Wed Apr 11, 2007 7:38 pm
Here's my code:
I get:
-102510475
-102510496
Hit enter to continue
If I change x to be 1192456821 I get:
1192456821
1192456800
Hit enter to continue
Either way that doesn't seem right. What's happening. Am I doing something wrong? Those numbers should fit happily into a quad shouldn't they?
Thanks,
Codefire
Code: Select all
Declare TestDivision ()
Procedure TestDivision ()
x.q = 4192456821
y.q = x/60
z.q = y*60
If OpenConsole()
PrintN(Str(x))
PrintN(Str(z))
Print("Hit enter to continue")
Input()
EndIf
EndProcedure
TestDivision()
-102510475
-102510496
Hit enter to continue
If I change x to be 1192456821 I get:
1192456821
1192456800
Hit enter to continue
Either way that doesn't seem right. What's happening. Am I doing something wrong? Those numbers should fit happily into a quad shouldn't they?
Thanks,
Codefire