4.2. Arithmetic functions #

4.2.1. abs()
4.2.2. div()
4.2.3. factorial()
4.2.4. fmod()
4.2.5. mod()
4.2.6. mul()
4.2.7. remainder()
4.2.8. uminus()
4.2.9. uplus()

4.2.1. abs() #

Absolute value. It takes one numeric operand. Operator |...| is a shortcut for this function.

4.2.2. div() #

Division. It takes two or more numeric operands. The way it works is: take the first operand and divide it by the second and subsequent operands in sequence. Operator / is a shortcut for this function.

4.2.3. factorial() #

Factorial function. It takes one numeric operand. The postfix operator ! is the alias for this function.

4.2.4. fmod() #

The result to the value of x - ny (x and y being its two numeric operands), rounded according to the report's rounding mode, where n is the integer quotient of x divided by y, n is rounded toward zero. It takes two numeric operands.

4.2.5. mod() #

An alias of remainder(). It takes two numeric operands. Operator % is a shortcut for this function.

4.2.6. mul() #

Multiplication. It takes two or more numeric operands. Operator * is a shortcut for this function.

4.2.7. remainder() #

The result to the value of x - ny (x and y being its two numeric operands), rounded according to the report's rounding mode, where n is the integer quotient of x divided by y, n is rounded toward to the nearest integer. It takes two numeric operands.

4.2.8. uminus() #

Unary minus. Changes the sign of its numeric operand from positive to negative, or vice versa. It takes one numeric operand. Operator unary - is a shortcut of this function.

4.2.9. uplus() #

Unary plus. Leaves the sign of its numeric operand as is. It takes one numeric operand. Operator unary + is a shortcut of this function.