Floating point default values.
Fusxfaranto via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jul 8 00:37:09 PDT 2015
On Wednesday, 8 July 2015 at 07:30:44 UTC, Charis wrote:
> 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
http://www.drdobbs.com/cpp/nans-just-dont-get-no-respect/240005723
More information about the Digitalmars-d
mailing list