in reply to Re: sprintf and decimals
in thread sprintf and decimals

sprintf uses "Banker's rounding"

Does it always? The docs appear to say it uses the system's sprintf() for floating points, and as far as I know that isn't guaranteed to do banker's rounding. (See for example the remarks here)

Replies are listed 'Best First'.
Re^3: sprintf and decimals
by ikegami (Patriarch) on Nov 15, 2006 at 19:27 UTC
    What about sprintf in POSIX? Is that one compiler-dependant too?