All Known Satisfying Interfaces: Numeric

Abstraction of types which support a unary additive inversion operation. For a numeric type, this should return the negative of the argument value. Note that the type parameter of this interface is not restricted to be a self type, in order to accommodate the possibility of types whose additive inverse can only be expressed in terms of a wider type.

By: Gavin
See also: Integer, Float
Attributes
negativeValueSource Code
shared formal Inverse negativeValue

The additive inverse of the value, which may be expressed as an instance of a wider type.

positiveValueSource Code
shared formal Inverse positiveValue

The value itself, expressed as an instance of the wider type.

Inherited Attributes
Attributes inherited from: Object
Inherited Methods
Methods inherited from: Object