Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Variables are automatically rounded off in perl

by syphilis (Archbishop)
on Jul 24, 2016 at 15:12 UTC ( [id://1168427]=note: print w/replies, xml ) Need Help??


in reply to Re: Variables are automatically rounded off in perl
in thread Variables are automatically rounded off in perl

Somebody had to mention it. 0.30000000000000004.com

But that's a different issue. That one's about getting a result of 0.30000000000000004 when a result of 0.3 is "expected".

In the OP's case, a result of 3336 was obtained though the expected (and correct) result is 3335.9999999999995.

Cheers,
Rob
  • Comment on Re^2: Variables are automatically rounded off in perl

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-24 05:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found