7.6 Extended integral operators

7.6.1 Arithmetic

Operator: + = (word int a) word int

Monadic operator that yields the affirmation of its operand.

Operator: - = (word int a) word int

Monadic operator that yields the negative of its operand.

Operator: abs = (word int a) word int

Monadic operator that yields the absolute value of its operand.

Operator: sign = (word int a) int

Monadic operator that yields -1 if a if negative, 0 if a is zero and 1 if a is positive.

Operator: odd = (word int a) bool

Monadic operator that yields true if its operand is odd, false otherwise.

Operator: + = (word int a, b) word int

Dyadic operator that yields the addition of its operands.

Operator: - = (word int a, b) word int

Dyadic operator that yields b subtracted from a.

Operator: * = (word int a, b) word int

Dyadic operator that yields the multiplication of its operands.

Operator: over = (word int a, b) word int
Operator: % = (word int a, b) word int

Dyadic operator that yields the integer division of a by b, rounding the quotient toward zero.

Operator: mod = (word int a, b) word int
Operator: %* = (l int a, b) l int

Dyadic operator that yields the remainder of the division of a by b.

Operator: / = (word int a, b) word real

Dyadic operator that yields the integer division with real result of a by b.

Operator: ** = (word int a, b) word int
Operator: ^ = (word int a, b) word int

Dyadic operator that yields a raised to the exponent b.

7.6.2 Arithmetic combined with assignation

Operator: plusab = (ref word int a, word int b) ref word int
Operator: +:= = (ref word int a, word int b) ref word int

Plus and become. Dyadic operator that calculates a + b, assigns the result of the operation to the name a and then yields a.

Operator: minusab = (ref word int a, word int b) ref word int
Operator: -:= = (ref word int a, word int b) ref word int

Dyadic operator that calculates a - b, assigns the result of the operation to the name a and then yields a.

Operator: timesab = (ref word int a, word int b) ref word int
Operator: *:= = (ref word int a, word int b) ref word int

Dyadic operator that calculates a * b, assigns the result of the operation to the name a and then yields a.

Operator: overab = (ref word int a, word int b) ref word int
Operator: %:= = (ref word int a, word int b) ref word int

Dyadic operator that calculates a % b, assigns the result of the operation to the name a and then yields a.

Operator: modab = (ref word int a, word int b) ref word int
Operator: %*:= = (ref word int a, word int b) ref word int

Dyadic operator that calculates a %* b, assigns the result of the operation to the name a and then yields a.

7.6.3 Relational

Operator: eq = (word int a, b) bool
Operator: = = (word int a, b) bool

Dyadic operator that yields whether its operands are equal.

Operator: ne = (word int a, b) bool
Operator: /= = (word int a, b) bool

Dyadic operator that yields whether its operands are not equal.

Operator: lt = (word int a, b) bool
Operator: < = (word int a, b) bool

Dyadic operator that yields whether a is less than b.

Operator: le = (word int a, b) bool
Operator: <= = (word int a, b) bool

Dyadic operator that yields whether a is less than, or equal to b.

Operator: gt = (word int a, b) bool
Operator: > = (word int a, b) bool

Dyadic operator that yields whether a is greater than b.

Operator: ge = (word int a, b) bool
Operator: >= = (l int a, b) bool

Dyadic operator that yields whether a is greater than, or equal to b.