WebSphere Message Brokers
File: ak05370_
Writer: Bill Oppenheimer

Reference topic

This build: July 31, 2007 21:31:59

MOD function

The MOD numeric function returns the remainder when dividing two numbers.

Syntax

MOD returns the remainder when the first parameter is divided by the second parameter. The result is negative only if the first parameter is negative. Parameters must be integers. The function returns an integer. If any parameter is NULL, the result is NULL.

For example:
MOD(7, 3)
returns 1
MOD(-7, 3)
returns -1
MOD(7, -3)
returns 1
MOD(6, 3)
returns 0
Related concepts
ESQL overview
Related tasks
Developing ESQL
Related reference
Syntax diagrams: available types
ESQL numeric functions
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2007Copyright IBM Corporation 1999, 2007. All Rights Reserved.
This build: July 31, 2007 21:31:59

ak05370_ This topic's URL is: