Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Variables are automatically rounded off in perl

by syphilis (Archbishop)
on Jul 24, 2016 at 15:12 UTC ( #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? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2022-05-21 07:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (76 votes). Check out past polls.

    Notices?