[Issue 2812] New: sqrt(2.0) is about -2.7341e-53

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Apr 6 12:09:27 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2812

           Summary: sqrt(2.0) is about -2.7341e-53
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: andrei at metalanguage.com


import std.math, std.stdio;

void main()
{
    double x = sqrt(2.0);
    writeln(x);
}

prints

-2.7341e-53


-- 



More information about the Digitalmars-d-bugs mailing list