remainder()

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.


Bash
 remainder(dividend, divisor) #Output: Number


Examples

Parser expression

Description

Bash
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

Parameter

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