Comparing double and float values

Matthew Ong ongbp at yahoo.com
Thu May 12 04:33:57 PDT 2011


Hi Alex,


Coming from a Java 1.6 environment and ex-CPP.

http://www.prowiki.org/wiki4d/wiki.cgi?JavaToD
I read this here. About 80-bit floats, I hoped that was about handling
decimal point number without the use of a library like other language.

Avoiding runtime error like:
d1=func1(); // returns -0.0i;
d2=func2(); // return 0.0i;

if(d1==d2)... // some time that failed.


More information about the Digitalmars-d mailing list