double.init is nan ..?

luka8088 luka8088 at owave.net
Sat Mar 15 06:15:42 PDT 2014


On 14.3.2014. 17:04, Etienne wrote:
> I'm trying to compare two doubles as part of a cache framework. To put
> it simply, double.init == double.init ... is false?

Note that you should not compare floating point types for equality!

http://www.parashift.com/c++-faq/floating-point-arith.html



More information about the Digitalmars-d mailing list