Welcome to the Monastery | |
PerlMonks |
Re: Re: Re: Re: (Golf) Formatting Integer To Moneyby larryk (Friar) |
on Aug 29, 2002 at 20:55 UTC ( [id://193910]=note: print w/replies, xml ) | Need Help?? |
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.
larryk perl -le "s,,reverse killer,e,y,rifle,lycra,,print"
In Section
Meditations
|
|