[Israel.pm] Rounding numbers to the nearest quarter???

Jason Elbaum Jason.Elbaum at freescale.com
Thu May 6 06:42:15 PDT 2004

Yuval Kogman wrote:

> I actually believed this was the idiom for rounds of all sorts, and
> would do stuff like int(($x * 100) + 0.5)/100 to acheive a percision of
> two decimal points... Self tought programming sucks - you only find out
> of essentials much later on.

All right Yuval, mind explaining what's wrong with it?


Jason Elbaum

More information about the Perl mailing list