in reply to Re: The 16 digit number dilemma.
in thread The 16 digit number dilemma.
I have made some progress using "bigint" and have the code actually getting exact on digits of up to 19 characters. I found that the calculations are identical until the number reaches 19 digits. The c++ is using 64bit signed ints that it says "wrap around" on overflow with arithmitic operations. So at the end of a calculation you can have a -6213077893701800743 number. Perl's would still be a +positive number therefore they do not match.
Perl seems to keep adding straight on up so I have to reconcile that somehow after 19 digits. Sheesh how did I get here? Fun fun fun ;)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: The 16 digit number dilemma.
by GrandFather (Saint) on Feb 06, 2006 at 19:54 UTC | |
by docster (Novice) on Feb 06, 2006 at 20:11 UTC | |
by GrandFather (Saint) on Feb 06, 2006 at 20:21 UTC | |
by docster (Novice) on Feb 06, 2006 at 22:43 UTC | |
|