CASTI-89 TITANIUM · CALC89
mod(
Returns a modulo b, the remainder of the division with the sign of b.
Syntax
mod(a, b)
- Group
- Number functions
- Arguments
- Takes the dividend a and the divisor b.
- Availability
- Included
Example
| Input | Result |
|---|---|
| mod(7,3) | 1 |
Typing mod(7,3) on the home screen and pressing ENTER returns 1.
Related commands
- real(Returns the real part of a complex number.
- remain(Returns the remainder of a divided by b, with the sign of a.
- root(Returns the n-th root of a value, for example the cube root for n=3.
- round(Rounds a value to a given number of decimal places.
- sign(Returns the sign of a value: 1 for positive and −1 for negative numbers.
- √(Returns the square root of a value.
- abs(Returns the absolute value of a number, or the modulus of a complex number.
- angle(Returns the argument of a complex number, the angle of its point in the complex plane.