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 ;)
In reply to Re^2: The 16 digit number dilemma.
by docster
in thread The 16 digit number dilemma.
by docster
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |