[fpc-pascal] NAN for double

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Jan 25 12:38:00 CET 2007


On Thu, 25 Jan 2007 12:10:44 +0100 (CET)
Daniƫl Mantione <daniel.mantione at freepascal.org> wrote:

> 
> 
> Op Thu, 25 Jan 2007, schreef Mattias Gaertner:
> 
> > How to set a double to NAN (not a number)?
> > I only found a IsNAN in the math unit.
> 
> const nan=0/0;

unit1.pas(28,10) Error: Division by zero


Mattias



More information about the fpc-pascal mailing list