Number.st
changeset 17207 75c41a799425
parent 17190 284d9c71385f
child 17224 43a8ca39cc90
equal deleted inserted replaced
17206:83666440217a 17207:75c41a799425
   960 isAlmostEqualTo:aNumber nEpsilon:nE 
   960 isAlmostEqualTo:aNumber nEpsilon:nE 
   961     "return true, if the argument, aNumber represents almost the same numeric value
   961     "return true, if the argument, aNumber represents almost the same numeric value
   962      as the receiver, false otherwise.
   962      as the receiver, false otherwise.
   963 
   963 
   964      nE is the number of minimal float distances, that the numbers may differ and
   964      nE is the number of minimal float distances, that the numbers may differ and
   965      still be considered equal.
   965      still be considered equal. See documentation in LimitedPrecisionReal for more detail.
   966 
   966 
   967      For background information why floats need this 
   967      For background information why floats need this 
   968      read: http://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/
   968      read: http://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/
   969     "
   969     "
   970 
   970 
  2522 
  2522 
  2523 
  2523 
  2524 !Number class methodsFor:'documentation'!
  2524 !Number class methodsFor:'documentation'!
  2525 
  2525 
  2526 version
  2526 version
  2527     ^ '$Header: /cvs/stx/stx/libbasic/Number.st,v 1.157 2014-12-08 15:10:27 cg Exp $'
  2527     ^ '$Header: /cvs/stx/stx/libbasic/Number.st,v 1.158 2014-12-11 14:11:07 cg Exp $'
  2528 !
  2528 !
  2529 
  2529 
  2530 version_CVS
  2530 version_CVS
  2531     ^ '$Header: /cvs/stx/stx/libbasic/Number.st,v 1.157 2014-12-08 15:10:27 cg Exp $'
  2531     ^ '$Header: /cvs/stx/stx/libbasic/Number.st,v 1.158 2014-12-11 14:11:07 cg Exp $'
  2532 ! !
  2532 ! !
  2533 
  2533