Re: [fpc-pascal] NAN for double

2007-01-25 Thread Mattias Gaertner
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 Ga

Re: [fpc-pascal] NAN for double

2007-01-25 Thread Mattias Gaertner
On Thu, 25 Jan 2007 14:38:04 +0100 Florian Klaempfl <[EMAIL PROTECTED]> wrote: > Mattias Gaertner schrieb: > > How to set a double to NAN (not a number)? > > I only found a IsNAN in the math unit. > > Then you should search more ;) Acutally there is NaN You are right. Sorry, probably a typo in t

Re: [fpc-pascal] NAN for double

2007-01-25 Thread Florian Klaempfl
Mattias Gaertner schrieb: > How to set a double to NAN (not a number)? > I only found a IsNAN in the math unit. Then you should search more ;) Acutally there is NaN ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/m

Re: [fpc-pascal] NAN for double

2007-01-25 Thread Daniël Mantione
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

Re: [fpc-pascal] NAN for double

2007-01-25 Thread Marco van de Voort
> On Thu, 25 Jan 2007 12:51:06 +0100 (CET) > [EMAIL PROTECTED] (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; (n

Re: [fpc-pascal] NAN for double

2007-01-25 Thread Mattias Gaertner
On Thu, 25 Jan 2007 12:51:06 +0100 (CET) [EMAIL PROTECTED] (Marco van de Voort) wrote: > > > > 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 > > Afaik that is delphi mode only

Re: [fpc-pascal] NAN for double

2007-01-25 Thread Marco van de Voort
> > > 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 Afaik that is delphi mode only. Also check the "typ" unit of numlib (in packages) ___ fpc-

Re: [fpc-pascal] NAN for double

2007-01-25 Thread 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 Ma

Re: [fpc-pascal] NAN for double

2007-01-25 Thread Daniël Mantione
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; Daniël___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/

[fpc-pascal] NAN for double

2007-01-25 Thread Mattias Gaertner
How to set a double to NAN (not a number)? I only found a IsNAN in the math unit. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal