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

Re^2: Different values while applying format specifiers

by kennethk (Abbot)
on Aug 26, 2014 at 21:47 UTC ( [id://1098685]=note: print w/replies, xml ) Need Help??


in reply to Re: Different values while applying format specifiers
in thread Different values while applying format specifiers

To explore what the numbers actually look like in memory, print them out with unrealistic precision:
printf "%.16f\n", 5.1 * 100; printf "%.16f\n", 10.1 * 100; printf "%.16f\n", 20.1 * 100;
And read that link.

#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-03-29 08:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found