modulus()

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


Bash
modulus(dividend, divisor) #Output: Number


The number divisor cannot be equal to 0.


Examples

Parser expression

Description

Bash
modulus(4,2)

This example returns:

0.0

Bash
modulus(3,2)

This example returns:

1.0


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


📚 Use cases and examples