Remove real type

BCS none at anon.com
Thu Apr 22 16:37:51 PDT 2010


Hello Bill,

> On Thu, Apr 22, 2010 at 11:27 AM, BCS <none at anon.com> wrote:
> 
>> Hello Bill,
>> 
>>> Seems to me the only use is to
>>> preserve a few more bits in intermediate computations.
>> There are some cases where you simply want to keep as much precision
>> as you can. In those cases variable precision floats aren't any
>> better of a solution as you would just turn them up as far as you can
>> without unacceptable cost elsewhere.
>> 
> So what's the advice you would you give to Joe coder about when to use
> 'real'?

If you have no special reason to use float or double and are not IO or memory 
space bound, use real. Every machine I know the details of will use it in 
the FPU so the only general advantage to not using it is IO speed and data 
size.

-- 
... <IXOYE><






More information about the Digitalmars-d mailing list