Bug #819
open
Decimal rounding of floating point values don't take into account rounding mode
Added by Dmitry M. almost 10 years ago.
Updated about 9 years ago.
Description
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.
Don't forget to update tests/device/crystax-test-stdio2 when this bug will be fixed
- Subject changed from Decimal floating point values rounded as if rounding mode was set to FE_TONEAREST to Decimal floating point values rounded wrong
- Subject changed from Decimal floating point values rounded wrong to Decimal rounding of floating point values don't take into account rounding mode
- CPU Architecture arm, arm64, mips, mips64, x86, x86_64 added
- CPU Architecture deleted (
arm, arm64, mips, mips64, x86, x86_64)
- Description updated (diff)
- Target version set to 10.1.0
- Target version deleted (
10.1.0)
- Priority changed from Low to Normal
- Target version set to 10.3.0
- Target version changed from 10.3.0 to 11.0.0
Also available in: Atom
PDF