in reply to counter-intuitive sprintf behaviour
Rounding of a value that is exactly halfway between two whole numbers will always go to the nearest even number.This is mandated by mathematicians in an attempt to reduce round-off error.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: •Re: counter-intuitive sprintf behaviour
by Anonymous Monk on Jan 15, 2003 at 05:45 UTC |