[fpc-pascal] NAN for double

Marco van de Voort marcov at stack.nl
Thu Jan 25 13:06:45 CET 2007


> On Thu, 25 Jan 2007 12:51:06 +0100 (CET)
> marcov at stack.nl (Marco van de Voort) wrote:

> > Also check the "typ" unit of numlib (in packages)
> 
> Thanks.
> 
> const
>   NANDoubleArray : ARRAY[0..7] OF BYTE = ($FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF);
> var
>   nan : double absolute NANDoubleArray;

(note this was never endian checked)



More information about the fpc-pascal mailing list