January 04, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=794

           Summary: std.math.exp2(0) equals 0 instead of 1
           Product: D
           Version: 1.00
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: Robert@christina-fritsch.de





-- 

January 05, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=794





------- Comment #1 from lio@lunesu.com  2007-01-05 06:38 -------
Must be something wrong with the C run-time:

import std.c.math, std.stdio;
void main()
{
  writefln( std.c.math.exp2f(0.0f) );
  writefln( std.c.math.exp2(0.0) );
  writefln( std.c.math.exp2l(0.0) );
}

These all print 0; when passing 0.00000000001 they'll correctly print 1.


--