Comparing double and float values

Matthew Ong ongbp at yahoo.com
Thu May 12 03:08:30 PDT 2011


Hi Alexander,

Is there anyway to ensure the comparison of float/double to be done with the raw
bits like in Java
Double.doubleToRawLongBits(double value)

http://download.oracle.com/javase/1.4.2/docs/api/java/lang/Double.html#doubleToRawLongBits%28double%29

when it comes to financial data and percentage computation, that seems to be
rather important.

Thanks in advance.

Matthew Ong


More information about the Digitalmars-d mailing list