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

2009-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2812


clugd...@yahoo.com.au changed:

   What|Removed |Added

   Severity|normal  |regression




--- Comment #1 from clugd...@yahoo.com.au  2009-04-06 14:15 ---
Confirmed. Crucial information missing: on Windows at least, this is only with
-O.

dmd -run bug.d
1.41421

dmd -run -O bug.d
-2.7341e-53

I'm raising this to regression.


-- 



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

2009-04-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2812





--- Comment #2 from dsim...@yahoo.com  2009-04-06 14:19 ---
Yes.  Also, this seems to happen only for sqrt(double) not sqrt(float) or
sqrt(real).


-- 



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

2009-04-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2812





--- Comment #3 from clugd...@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.


-- 



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

2009-04-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2812


bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Comment #4 from bugzi...@digitalmars.com  2009-04-08 00:26 ---
Fixed dmd 2.028


-- 



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

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2812

Andrei Alexandrescu  changed:

   What|Removed |Added

Version|unspecified |D2

--