You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Current »

This function returns the remainder after division of the dividend by the divisor.

Syntax
modulus(dividend, divisor) #Output: Number

The number divisor cannot be equal to 0.

Examples
Parser expressionDescription
%{modulus(4,2)}

This example returns:

0

 

%{modulus(3,2)}

This example returns:

1

Additional information

Parameters used in this function

ParameterInput (data type)Description
dividend

NUMBER

Any given number or numeric field code.
divisor

NUMBER

Any given number other than 0 or numeric field code.
Output

This function returns a NUMBER


Use cases and examples