Magnitude
ClassMagnitude
is the superclass of all object classes that contain
quantities.
!
(void
)
When used as a prefix operator, overloads C’s ‘!’ operator in expressions that contain objects.
*
(void
)
When used as a prefix operator, overloads C’s ‘*’ dereference
operator and returns the first element of an int
, long
int,
long long int,
or double
array as an Integer,
LongInteger,
or Float
object.
-
(void
)
Overloads the unary ‘-’ prefix operator. Returns the
negated value of an Integer,
LongInteger,
or Float,
receivers.
asCharacter
(void
)
Return an object with the receiver’s value as a Character
object.
asFloat
(void
)
Return the value of an Integer
or LongInteger
receiver
as a Float
object. If the receiver is a Float
object,
returns the receiver. For all other classes, prints a warning
and returns 0.0f
.
asInteger
(void
)
Return an object with the receiver’s value as an Integer
object.
asLongInteger
(void
)
Return an object with the receiver’s value as a LongInteger
object.