Floating point types default to NaN?

codephantom me at noyb.com
Thu Nov 30 01:21:04 UTC 2017


On Friday, 24 November 2017 at 14:30:44 UTC, A Guy With a 
Question wrote:
> I would have expected 0 to be the default value. What's the 
> logic behind having them being NaN by default?
>
> https://dlang.org/spec/type.html


http://www.drdobbs.com/cpp/nans-just-dont-get-no-respect/240005723



More information about the Digitalmars-d-learn mailing list