REMAINDER function [Numeric]

Function

Returns the remainder when one whole number is divided by another.

Syntax

REMAINDERdividend, divisor )

Parameters

dividend The dividend, or numerator of the division.

divisor The divisor, or denominator of the division.

Example

The following statement returns the value 2:

SELECT REMAINDER( 5, 3 ) FROM iq_dummy

Usage

REMAINDER is the same as the MOD function.

Standards and compatibility

See also

“MOD function [Numeric]”