Project

General

Profile

Bug #819

Decimal rounding of floating point values don't take into account rounding mode

Added by Dmitry Moskalchuk over 4 years ago. Updated over 3 years ago.

Status:
Open
Priority:
Normal
Assignee:
-
Category:
libcrystax
Target version:
Start date:
12/26/2014
Due date:
% Done:

0%

Estimated time:
CPU Architecture:
Host OS:
Toolchain:
Android version:
CrystaX Version:

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.

History

#1 Updated by Dmitry Moskalchuk over 4 years ago

Don't forget to update tests/device/crystax-test-stdio2 when this bug will be fixed

#2 Updated by Dmitry Moskalchuk over 4 years ago

  • Subject changed from Decimal floating point values rounded as if rounding mode was set to FE_TONEAREST to Decimal floating point values rounded wrong

#3 Updated by Dmitry Moskalchuk over 4 years ago

  • Subject changed from Decimal floating point values rounded wrong to Decimal rounding of floating point values don't take into account rounding mode

#4 Updated by Dmitry Moskalchuk over 4 years ago

  • CPU Architecture arm, arm64, mips, mips64, x86, x86_64 added

#5 Updated by Dmitry Moskalchuk over 4 years ago

  • CPU Architecture deleted (arm, arm64, mips, mips64, x86, x86_64)

#6 Updated by Dmitry Moskalchuk over 4 years ago

  • Description updated (diff)

#7 Updated by Dmitry Moskalchuk over 4 years ago

  • Target version set to 10.1.0

#8 Updated by Dmitry Moskalchuk over 4 years ago

  • Target version deleted (10.1.0)

#9 Updated by Dmitry Moskalchuk over 4 years ago

  • Priority changed from Low to Normal

#10 Updated by Dmitry Moskalchuk almost 4 years ago

  • Target version set to 10.3.0

#11 Updated by Dmitry Moskalchuk over 3 years ago

  • Target version changed from 10.3.0 to 11.0.0

Also available in: Atom PDF