On Thu, 25 Jan 2007 13:20:37 +0100 (CET)
Daniël Mantione <[EMAIL PROTECTED]> wrote:

> 
> 
> Op Thu, 25 Jan 2007, schreef Mattias Gaertner:
> 
> > On Thu, 25 Jan 2007 12:10:44 +0100 (CET)
> > Daniël Mantione <[EMAIL PROTECTED]> 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
> 
> Well, not here. See the program below. Can you check if this depends
> on the compiler version or mode? 0/0 should normally work.

It depends on -Cr.


Mattias
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to