| |||||
Previous Next |
The pre-defined type Integer represents the mathematical concept of integer. An integer literal corresponds to: integer ::= (digit)+ digit ::= '0'..'9'
Operation Summary | |
Integer | + This integer. |
Integer | +(Integer rhs) The value of the addition of this integer and rhs. |
Real | /(Integer rhs) The value of the division of this integer divided by rhs. |
Boolean | =(Integer rhs) True if this integer is equal to rhs. |
Boolean | >=(Integer rhs) True if this integer is less than of equal to rhs. |
Boolean | >(Integer rhs) True if this integer is greater than rhs. |
Boolean | <=(Integer rhs) True if this integer is less than or equal to rhs. |
Boolean | <(Integer rhs) True if this integer is less than rhs. |
Integer | *(Integer rhs) The value of the multiplication of this integer and rhs. |
Boolean | <>(Integer rhs) True if this integer is not equal to rhs. |
Integer | - The opposite of this integer. |
Integer | -(Integer rhs) The value of the substraction of rhs from this integer. |
Integer | abs The absolute value of this integer. |
Integer | div(Integer rhs) The number of times that rhs fits completely within this integer. |
Integer | max(Integer rhs) The maximum of this integer and rhs. |
Integer | min(Integer rhs) The minimum of this integer and rhs. |
Integer | mod(Integer rhs) The result is this integer modulo rhs. |
String | toString A representative character string of this integer. |
Operations inherited from type Real |
+, /, =, >=, >, <=, <, *, <>, -, floor, max, min, random, round |
Operations inherited from type OclAny |
=, <>, oclAsType, oclIsKindOf, oclIsTypeOf |
Operations Detail |
public Boolean =(Integer rhs)
public Boolean <>(Integer rhs)
public Integer +
+
in type Real
public Integer -
-
in type Real
public Integer +(Integer rhs)
public Integer -(Integer rhs)
public Integer *(Integer rhs)
public Real /(Integer rhs)
public Integer abs
abs
in type Real
public Integer div(Integer rhs)
public Integer mod(Integer rhs)
public Integer max(Integer rhs)
public Integer min(Integer rhs)
public Boolean <(Integer rhs)
public Boolean >(Integer rhs)
public Boolean <=(Integer rhs)
public Boolean >=(Integer rhs)
public String toString
toString
in type Real
| |||||
Previous Next |