Breadcrumbs

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

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 shows different possibilities for type conversions between Float, Integer, String, and Boolean types in Scheer PAS Designer.

📗