Mod()

Syntax

Result.f = Mod(Number.f, Divisor.f)
Description
Returns the remainder of the division of Number.f by Divisor.f.

Parameters

Number.f The number to divide. The input does not need to be a whole number.
Divisor.f The number by which to divide. The input does not need to be a whole number.

Return value

Returns the remainder of the division. The result has the same sign as the Number.f parameter.

Remarks

This is the floating-point version of the '%' operator for integers. This function can handle float and double values.

Supported OS

All

<- Log10() - Math Index - NaN() ->