Complex number functions for std.math

James Dunne james.jdunne at gmail.com
Sun Apr 9 00:16:40 PDT 2006


Johan Granberg wrote:
> 
>> float32  ifloat32  cfloat32
>> float64  ...
>> float80
>> float128
>> float16
> 
> 
> In my opinion these are the best ones as they make it clear that it is a 
> floating point number and how big it is.

Yes they do, but unfortunately hardware limitations come into play - one 
wouldn't want code breaking all over the place if 80-bit floats were not 
available on the target architecture.  (Assuming that the 
higher-precision types wouldn't be cast down to the highest-precision 
type available on the target architecture)

-- 
Regards,
James Dunne



More information about the Digitalmars-d mailing list