
Class: SomeNumber
Object

+Magnitude

+ArithmeticValue

+Number

+MetaNumber

+SomeNumber
 Package:
 stx:libbasic
 Category:
 MagnitudeNumbers
 Version:
 rev:
1.5
date: 2016/12/31 00:02:31
 user: stefan
 file: SomeNumber.st directory: libbasic
 module: stx stcclassLibrary: libbasic
 Author:
 Claus Gittinger
Only used internally during double dispatch,
when MetaNumbers (INF and NAN) are involved.
Number
Infinity
NotANumber
Float
ShortFloat
Fraction
FixedPoint
Integer
Complex
FloatArray
DoubleArray
arithmetic

* something

return the product of the receiver and the argument

+ something

return the sum of the receiver and the argument

 something

return the difference of the receiver and the argument

/ something

return the quotient of the receiver and the argument

< something

return true if the receiver is less than the argument

= something

return true, if the argument represents the same numeric value
as the receiver, false otherwise.
usage example(s):
Float infinity = Infinity positive
Infinity positive = Float infinity
Float negativeInfinity = Infinity negative
Infinity negative = Float negativeInfinity
Float negativeInfinity = Infinity positive
Infinity positive = Float negativeInfinity

printing

printOn: aStream

privateaccessing

realNumber


realNumber: something

queries

isInfinite


sign

return the sign of the receiver (1, 0 or 1)
