Thema: Delphi NaN in Delphi 5

Einzelnen Beitrag anzeigen

shmia

Registriert seit: 2. Mär 2004
5.508 Beiträge
 
Delphi 5 Professional
 
#2

Re: NaN in Delphi 5

  Alt 29. Mai 2007, 13:31
In der JCL, Unit JclMath:
Delphi-Quellcode:
const
  Infinity = 1/0; // tricky
  {$EXTERNALSYM Infinity}
  NaN = 0/0; // tricky
  {$EXTERNALSYM NaN}
  NegInfinity = -Infinity;
  {$EXTERNALSYM NegInfinity}
Dort sind dann auch Funktionen, um NaN erkennen und weitere...
Andreas
  Mit Zitat antworten Zitat