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

Re: Re: Re: Re: (Golf) Formatting Integer To Money

by larryk (Friar)
on Aug 29, 2002 at 20:55 UTC ( #193910=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Re: (Golf) Formatting Integer To Money
in thread (Golf) Formatting NumberTo Money

Actually, this is the expected rounding. If you think about it, only half of them should round up (and the other half down) since that will give a more accurate average. In this case .125 rounds down, if you try .135 it will round up and .145 will round down.
perl -le "s,,reverse killer,e,y,rifle,lycra,,print"
  • Comment on Re: Re: Re: Re: (Golf) Formatting Integer To Money

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2016-10-27 14:05 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (363 votes). Check out past polls.