NotANumber.st
changeset 24703 3cd1ec269512
parent 21892 1fea613ccf95
equal deleted inserted replaced
24702:b1559a3850a0 24703:3cd1ec269512
   152 ! !
   152 ! !
   153 
   153 
   154 !NotANumber methodsFor:'testing'!
   154 !NotANumber methodsFor:'testing'!
   155 
   155 
   156 isFinite
   156 isFinite
       
   157     "return true, if the receiver is a finite float (not NaN and not +/-INF)"
       
   158 
   157     ^ false
   159     ^ false
   158 !
   160 !
   159 
   161 
   160 isNaN
   162 isNaN
       
   163     "return true, if the receiver is an invalid float (NaN - not a number).
       
   164      These are not created by ST/X float operations (they raise an exception)"
       
   165 
   161     ^ true
   166     ^ true
   162 ! !
   167 ! !
   163 
   168 
   164 !NotANumber class methodsFor:'documentation'!
   169 !NotANumber class methodsFor:'documentation'!
   165 
   170