[Israel.pm] Rounding numbers to the nearest quarter???
Jason Elbaum
Jason.Elbaum at freescale.com
Thu May 6 05:11:15 PDT 2004
Multiply by four, round to nearest integer, divide by four:
x=2.70
x*4 = 10.80
round(x*4) = 11
round(x*4)/4 = 2.75
Jason Elbaum
Freescale Semiconductor
More information about the Perl
mailing list