Bug 4200 – "to!real(to!string(real.min_normal))" raises std.conv.ConvError

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2010-05-17T06:48:00Z
Last change time
2016-11-25T18:09:43Z
Keywords
bootcamp
Assigned to
nobody
Creator
repeatedly

Comments

Comment #0 by repeatedly — 2010-05-17T06:48:20Z
On Mac OS X Snow Leopard, following code raises ConvError. ----- to!real(to!string(real.min_normal)); // == to!real("3.3621e-4932") std.conv.ConvError: Can't convert value `3.3621e-4932' of type const(char)[] to type real ----- On Windows XP, It works.
Comment #1 by john.loughran.colvin — 2014-09-20T20:38:23Z
Can anyone confirm this on OS X?
Comment #2 by andrei — 2016-11-25T18:09:43Z
Just tested, this program prints 3.3621e-4932 on macOS Sierra 10.12.1 (16B2555): void main() { import std.conv, std.stdio; writeln(to!real(to!string(real.min_normal))); }