modulus(numbers)

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

Bash
modulus(dividend, divisor) #Output: Number

The divisor number cannot be equal to 0.

Examples

Parser expression

Description

Bash
%{modulus(4,2)}

This example returns:

 0

Bash
%{modulus(3,2)}

This example returns:

1

Additional information

Parameters used in this function

Parameter

Input (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


(books) Use cases and examples