Anton Ertl wrote:
> David N. Williams wrote:
> [...]
>
>>It
>>was then very comforting to be able to print out the decimal
>>representations to around 40 digits with F., add them up, and
>>see that I got 1+sqrt(2) to nearly 34 significant digits, twice
>>the machine precision.
>
>
> Ok, now I see the application. But that's very specialised.

Specialised indeed, but nice to have.


>>I believe a better way to do the insertion is with a variant of
>> >FLOAT that reads C99 mixed hex/radix 2 FP strings. I've
>>written most of one of those, too, for IEEE 32-bit and 64-bit
>>numbers.
>
>
> Another way is to use D>F to convert the mantissa, then use f2* or f2/
> repeatedly for the exponent.

Yes, but f2* and f2/ are unspecified, and hence not portable. You have to trust that your implementor does the right thing. :-)

I would certainly advocate that somebody propose common practise for 'em.

-- David


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to