[Issue 9297] New: Formatting of floating point values in std.format truncates reals to double
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 11 21:55:39 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9297
Summary: Formatting of floating point values in std.format
truncates reals to double
Product: D
Version: D2
Platform: x86_64
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: bugzilla at digitalmars.com
--- Comment #0 from Walter Bright <bugzilla at digitalmars.com> 2013-01-11 21:55:36 PST ---
The following from std.format shows the problem:
n = snprintf(fbuf.ptr, sl, format.ptr, field_width,
precision, cast(double)v);
It relies on the VC runtime library function snprintf to do the formatting, but
that function does not support 80 bit reals.
To fix we'll need to write our own 80 bit formatting routine instead of relying
on the host C compiler's.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list