Floating point default values.

Charis via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 8 00:30:42 PDT 2015


Hello,

I'm sorry if this is a silly question, or if it's answered 
anywhere (it's really hard googling anything about "d"), but I 
was wondering what's the reasoning behind NaN being the default 
value for float/double/real.

It only seems to be making things more complicated for no reason. 
Or is there a purpose to it?

Thank you


More information about the Digitalmars-d mailing list