Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Printf/Sprintf Behavior Change

by Anonymous Monk
on Sep 17, 2013 at 09:08 UTC ( #1054410=note: print w/ replies, xml ) Need Help??


in reply to Re: Printf/Sprintf Behavior Change
in thread Printf/Sprintf Behavior Change

However if you understand the rounding rules for Perl, you will be fine.

Handsom too? Whats that mean "fine"


Comment on Re^2: Printf/Sprintf Behavior Change
Re^3: Printf/Sprintf Behavior Change
by Marshall (Prior) on Sep 17, 2013 at 22:45 UTC
    "fine" means that you understand what is going to happen in whatever number base that you are calculating in. And that no matter what you do, there will most often be imperfect representations in either a decimal or binary format. For example: 1/3. If we aren't in base 3, there is going to be a precision problem.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (13)
As of 2015-07-02 10:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (34 votes), past polls