Skip to main content
Skip table of contents

modulo() Operation

Syntax

set result = anInteger.modulo(divisor)

Semantics

Returns anInteger mod divisor.

Substitutables

anInteger, divisor

 Can be any variable or object attribute having the type Integer.

Examples

CODE
set result = anInteger.modulo(2);

Some Examples

anInteger

Divisor

Modulo Result

1234

2

0

1234

3

1

ActionScript_TypeConversions_Example

Click here to download a simple example model that different possibilities for type conversions between Float, Integer, String, and Boolean types in Scheer PAS Designer.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.