in reply to F***ing sprintf rounding - how does it work?
round towards even, and for me, 0.15 => 0.2.
In the cases where your test program deviates from the expected value, it's just the usual floating point inaccuracy bullshit. I guess sprintf %f operates on NV/numbers.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Fucking sprintf rounding - how does it work?
by ribasushi (Pilgrim) on Sep 03, 2012 at 17:07 UTC | |
by daxim (Curate) on Sep 03, 2012 at 17:13 UTC |
In Section
Seekers of Perl Wisdom