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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 7 00:08:07 PDT 2009


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





------- Comment #3 from clugdbug at yahoo.com.au  2009-04-07 02:08 -------
Not so.
float x = sqrt(2.0f);

is also wrong.
It only affects compile-time constants:
double y = 2.0;
double x = sqrt(y);
works correctly.


-- 



More information about the Digitalmars-d-bugs mailing list