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.