floats default to NaN... why?

F i L witte2008 at gmail.com
Sat Apr 14 08:01:15 PDT 2012


dennis luehring wrote:
> what does make float default to 0.0 better - does it just feel 
> better?

Not just. It's consistent with Int types, therefor easier for 
newbs to pick up since all numeric value types behave the same.

I even think char should default to a usable value as well. Most 
likely a space character. But that's another point.



More information about the Digitalmars-d-learn mailing list