Reading 32-bit IEEE floats from binary file ??



On 2013-05-24, Henry Baker <hbaker1 at pipeline.com> wrote:

> Here's what I have so far.  This code doesn't handle -0.0s0.
>
> I don't know if it works correctly on gradually underflowing numbers.
>
> I don't know how to get Lisp to deal correctly with NaN's.

Non-numeric floats (inf, nan) don't exist in Common Lisp, so any code to
handle them would have to be implementation-specific. I don't remember
about denormalized numbers. About signed zero, if I recall correctly, it
may or may not exist.

best,

Robert Dodier