in reply to Re: sprintf rounding convention
in thread sprintf rounding convention
nv += 0.5; uv = (UV)nv; if (uv & 1 && uv == nv) uv--; /* Round to even */
(There are paths I didn't take the time to understand, so maybe it doesn't always get to this function.)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: sprintf rounding convention
by Joost (Canon) on Oct 30, 2009 at 23:01 UTC | |
by merlyn (Sage) on Oct 31, 2009 at 00:31 UTC | |
by Joost (Canon) on Oct 31, 2009 at 12:33 UTC | |
Re^3: sprintf rounding convention
by kennethk (Abbot) on Oct 30, 2009 at 22:24 UTC | |
by Joost (Canon) on Oct 30, 2009 at 23:14 UTC | |
by ikegami (Patriarch) on Oct 31, 2009 at 01:48 UTC |