The standard type Integer represents the mathematical concept of integer. Note that UnlimitedNatural is a subclass of Integer, so for each parameter of type Integer, you can use an unlimited natural as the actual parameter. Integer is itself an instance of the metatype PrimitiveType (from UML).
conformsTo
Real
Operations
-() : Integer
precedence:
UNARY
The negative value of self.
+(i : Integer) : Integer
precedence:
ADDITIVE
The value of the addition of self and i.
-(i : Integer) : Integer
precedence:
ADDITIVE
The value of the subtraction of i from self.
*(i : Integer) : Integer
precedence:
MULTIPLICATIVE
The value of the multiplication of self and i.
/(i : Integer) : Real
precedence:
MULTIPLICATIVE
The value of self divided by i. Evaluates to invalid if r is equal to zero.
abs() : Integer
The absolute value of self.
div(i : Integer) : Integer
The number of times that i fits completely within self.
mod(i : Integer) : Integer
The result is self modulo i.
max(i : Integer) : Integer
The maximum of self an i.
min(i : Integer) : Integer
The minimum of self an i.
toString() : String
Converts self to a string value.