Maptitude GISDK Help |
Returns the remainder (modulus) when one number is divided by another.
mod_value = Mod(real value1, real value2)
Argument |
Contents |
value1 |
Any number |
value2 |
Any number |
A real number that is the remainder of the calculation value1/value2.
Mod() can be used for both integers and real numbers.
x1 = Mod(25, 7) |
// x1 = 4 |
x2 = Mod(25, 1.5) |
// x2 = 1 |
x3 = Mod(11.1, 0.5) |
// x3 = 0.1 |
Error Type |
Meaning |
Divide by Zero |
value2 = 0 |
Function |
Summary |
Rounds a value to a specified number of decimal places |
|
Returns the next larger integer after a value |
|
Returns the next smaller integer before a value |
©2025 Caliper Corporation | www.caliper.com |