Maptitude GISDK Help

Mod()

Summary

Returns the remainder (modulus) when one number is divided by another.

 

Syntax

mod_value = Mod(real value1, real value2)

 

Argument

Contents

value1

Any number

value2

Any number

 

Returns

A real number that is the remainder of the calculation value1/value2.

 

Notes

Example

x1 = Mod(25, 7)

// x1 = 4

x2 = Mod(25, 1.5)

// x2 = 1

x3 = Mod(11.1, 0.5)

// x3 = 0.1

 

Error Codes

Error Type

Meaning

Divide by Zero

value2 = 0

 

See Also

Function

Summary

Round()

Rounds a value to a specified number of decimal places

Ceil()

Returns the next larger integer after a value

Floor()

Returns the next smaller integer before a value

 

 

©2025 Caliper Corporation www.caliper.com