why is the default floating point value NAN ?
    Adam D. Ruppe 
    destructionator at gmail.com
       
    Wed Oct 17 15:51:47 UTC 2018
    
    
  
On Wednesday, 17 October 2018 at 15:48:16 UTC, Codifies wrote:
> I'd have thought it ought to be 0.0 ?
>
> So far I seen carefully considered and sensible reasons for 
> doing things in D, so why NAN ?
You are supposed to initialize your own variables explicitly. NaN 
is a somewhat easy way to indicate that you forgot to do that.
    
    
More information about the Digitalmars-d-learn
mailing list