Project

General

Profile

Actions

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.

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 NDK 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.

Actions #1

Updated by Dmitry M. almost 10 years ago

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

Actions #2

Updated by Dmitry M. almost 10 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
Actions #3

Updated by Dmitry M. almost 10 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
Actions #4

Updated by Dmitry M. almost 10 years ago

  • CPU Architecture arm, arm64, mips, mips64, x86, x86_64 added
Actions #5

Updated by Dmitry M. almost 10 years ago

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

Updated by Dmitry M. almost 10 years ago

  • Description updated (diff)
Actions #7

Updated by Dmitry M. almost 10 years ago

  • Target version set to 10.1.0
Actions #8

Updated by Dmitry M. almost 10 years ago

  • Target version deleted (10.1.0)
Actions #9

Updated by Dmitry M. almost 10 years ago

  • Priority changed from Low to Normal
Actions #10

Updated by Dmitry M. over 9 years ago

  • Target version set to 10.3.0
Actions #11

Updated by Dmitry M. about 9 years ago

  • Target version changed from 10.3.0 to 11.0.0
Actions

Also available in: Atom PDF