Bug #819
Updated by Dmitry M. almost 10 years ago
No matter which rounding mode set with @fesetround@ (@FE_DOWNWARD@, @FE_UPWARD@, @FE_TOWARDZERO@ or @FE_TONEAREST@), @printf("%.3f", flt)@ and @printf("%.3Lf", flt)@ always produce results like if @FE_TONEAREST@ was set. It happens for all platforms, no matter soft/hard float or 32/64-bit signedness. The same happens with scanf() family of functions.