Modulus

 

Divides a number (the dividend) by another number (the divisor) and then assigns the remainder (the modulus) to a variable.

 

Properties

Option

Description

Numerator

Enter the integer or float value to be divided (the dividend).

This must be a value that is provided as a literal preceded by =, or a variable of the correct type.

Denominator

Enter the integer or float value to divide the numerator by (the divisor).

This must be a value that is provided as a literal preceded by =, or a variable of the correct type.

Result

Enter an integer or float variable to store the modulus (the remainder) of the division. The latter is recommended if the result may not be a whole number. For example, if the numerator is 18 and the denominator is 4, then the modulus value stored in this variable is 2.

Exit Points

Exit Point

Description

Complete

This is taken when the action cell has executed.

Error

This is taken if an internal error occurred or where the result is undefined (such as when the denominator is zero).