WebSphere Message Broker, Version 8.0.0.7 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS

See information about the latest product version

MOD function

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

Syntax

Read syntax diagramSkip visual syntax diagram
>>-MOD--(--dividend--,--divisor--)-----------------------------><

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
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2016Copyright IBM Corporation 1999, 2016.

        
        Last updated:
        
        Last updated: 2016-05-23 14:47:12


Reference topicReference topic | Version 8.0.0.7 | ak05370_