Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Strange int() result

by RonW (Hermit)
on Jun 18, 2014 at 17:16 UTC ( #1090322=note: print w/ replies, xml ) Need Help??


in reply to Re: Strange int() result
in thread Strange int() result

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.


Comment on Re^2: Strange int() result

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1090322]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2014-12-27 12:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls