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

Also available in: Atom PDF