3578444.999999999534339 suggests you are running into the limits of your Perl/PC combination's floating point handling.
Your problem would be better handled with fix point arithmetic. Look at Math::BigInt.
In reply to Re^2: Strange int() result
by RonW
in thread Strange int() result
by menth0l
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |