|
Class: SomeNumber
Object
|
+--Magnitude
|
+--ArithmeticValue
|
+--Number
|
+--MetaNumber
|
+--SomeNumber
- Package:
- stx:libbasic
- Category:
- Magnitude-Numbers
- Version:
- rev:
1.5
date: 2016/12/31 00:02:31
- user: stefan
- file: SomeNumber.st directory: libbasic
- module: stx stc-classLibrary: 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
-
private-accessing
-
realNumber
-
-
realNumber: something
-
queries
-
isInfinite
-
-
sign
-
return the sign of the receiver (-1, 0 or 1)
|