This function returns dividend - divisor * n, where n is the closest integer to dividend/divisor.

Check the function round() to learn more about the closest integer.

The number divisor cannot be equal to 0.

Syntax
 remainder(dividend, divisor) #Output: Number
Examples
Parser expressionDescription
remainder(3,4)

This example returns:

-1.0

3 - 4 * 3/4 = 3 - 4 * 0.75 → 3 - 4 * 1= -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.
Output

This function returns a NUMBER


Use cases and examples