float.min, double.min, int.min

bearophile bearophileHUGS at lycos.com
Mon Nov 28 07:26:45 PST 2011


Andrea Fontana:

>   writeln("int.max: ", int.max);
>   writeln("int.min: ", int.min);
>   writeln("float.max: ", float.max);
>   writeln("float.min: ", float.min);
> }
> 
> it prints:
> int.max: 2147483647      <-- no int >  int.max
> int.min: -2147483648      <-- no int <  int.min
> float.max: 3.40282e+38 <-- no float > float.max
> float.min: 1.17549e-38 <--  this shoud be  -float.max (or -inf?). It's
> not a min...   

FP.min is deprecated in D, it just causes confusion. Please Kenji Hara make it available with -d only soon :-)

Bye,
bearophile


More information about the Digitalmars-d mailing list