Mod()

Syntax

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

Parameters

Number.f or Number.d The number to divide. The input does not need to be a whole number.
Divisor.f or Divisor.d 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(.d) parameter.

Remarks

This is the floating-point version of the '%' operator for integers. This function handles and returns float or double values.

Supported OS

All

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