Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Test::More how come?

by keszler (Priest)
on Jan 30, 2013 at 17:24 UTC ( #1016113=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Test::More how come?
in thread Test::More how come?

Try:

perl -e 'printf "%.32g\n", -2.3 - -0.6;' -1.6999999999999997
See for other examples Perl 5.8.x floating point representation error, RFC: Large Floating Point Numbers - Rounding Errors, etc.


Comment on Re^3: Test::More how come?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2016-02-11 22:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (382 votes), past polls