mod() Function

Function

mod( dividend, divisor )

Returns the remainder of dividend when divided by the divisor.

Parameters

Keyword Type Description

dividend

Decimal Array

The number that will serve as the dividend in the modulus calculation.

divisor

Decimal Array

The number that will serve as the divisor or base in the modulus calculation.

Returns

Number

Examples

You can experiment with this function in the test box below.

Test Input

mod(8,3) returns 2

Open in Github Built: Thu, Oct 14, 2021 (02:44:31 PM)

On This Page

FEEDBACK