Thread overview
[Issue 10691] real type on Win 64 broken (?)
May 26, 2014
Johannes Blume
May 26, 2014
Rainer Schuetze
Dec 17, 2022
Iain Buclaw
May 26, 2014
https://issues.dlang.org/show_bug.cgi?id=10691

Johannes Blume <jblume@jblume.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jblume@jblume.com

--- Comment #2 from Johannes Blume <jblume@jblume.com> ---
=================================
DMD v2.065 official (32-bit):
3.3621e-4932 1.18973e+4932
3.3621e-4932 1.18973e+4932
3.3621e-4932 1.18973e+4932

DMD v2.065 official (64-bit):
2.27151e-312 2.27151e-312
2.79471e-312 2.79471e-312
1.74681e-312 1.74681e-312
=================================
DMD v2.066 git MSVC2013 (32-bit):
3.3621e-4932 1.18973e+4932
3.3621e-4932 1.18973e+4932
3.3621e-4932 1.18973e+4932

DMD v2.066 git MSVC2013 (64-bit):
0 inf
0 inf
0 inf
=================================

So the random results on Win64 seem to be fixed on git.

--
May 26, 2014
https://issues.dlang.org/show_bug.cgi?id=10691

Rainer Schuetze <r.sagitario@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario@gmx.de

--- Comment #3 from Rainer Schuetze <r.sagitario@gmx.de> ---
Yeah, the output was fixed when the unittests for Win64 were enabled. Unfortunately the runtime still uses C's sprintf for printing floating point numbers, and the MS library only supports double, not real.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=10691

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3

--