www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Floating point default values.

reply "Charis" <info schemingdeveloper.com> writes:
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
Jul 08 2015
next sibling parent "Fusxfaranto" <fusxfaranto gmail.com> writes:
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
Jul 08 2015
prev sibling parent ketmar <ketmar ketmar.no-ip.org> writes:
On Wed, 08 Jul 2015 07:30:42 +0000, Charis wrote:

 (it's really hard googling anything about "d")
OT: try to use "dlang" instead of simply "d".=
Jul 08 2015