+= on associative arrays leads to surprising result

berni someone at somewhere.com
Tue Aug 27 17:14:53 UTC 2019

On Tuesday, 27 August 2019 at 16:45:53 UTC, Samir wrote:
> I never understood why the intial value of floats, doubles and 
> reals was NaN.

That's for detecting uninitialised variables. If the result of a 
calculation is NaN, it's likely, that you forgot to initialise 
the variable.

More information about the Digitalmars-d-learn mailing list