float to bfloat



Greetings!

Barton Willis <willisb@unk.edu> writes:

> Here is a function that uses integer-docode-float to do float to
> big float conversion.
> 
> Notes:
> 
> (1)  The function floattofp prints an warning when converting a float to 
> a big float; this  function doesn't -- should it?
> 
> (2)  For denormalized inputs, the function floattofp halts -- try 
>  bfloat(2.0d0^-1025). (It seems that gcl 2-5.0 doesn't support
> denormalized floats?  Under cmucl,  bfloat(2.0d0^-1025) gives an 
> error.) This function should work correctly on denormalized floats. 
> 

Just a note that with 5.9.0 on gcl>=2.6.1, this bfloat command starts
an apparently unterminating sequence of operations triggering *many*
bignum garbage collections.

Take care,


-- 
Camm Maguire			     			camm@enhanced.com
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah