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

Re^3: Best way to round a number.

by ajam (Acolyte)
on Oct 25, 2012 at 02:40 UTC ( #1000753=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Best way to round a number.
in thread Best way to round a number.

How is 33 closer to 30 than to 35?

30 31 32 33 34 35

I count two numbers between 30 and 33, but only one number between 33 and 35. Clearly 33 is closer to 35.


Comment on Re^3: Best way to round a number.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (12)
As of 2015-07-07 22:02 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 (93 votes), past polls