How To Use Mod Function In Oracle
Description
Mod function returns the reminder of m divided by n.
Mod function returns m, if n is 0 and Mod function uses Floor function in the formula.
Example
- Select Mod (12, 2)
- From Dual;
Example
- Select Mod (12.5, 2)
- From Dual;
Example
- Select Mod (-10, 3)
- From Dual;
Example
- Select Mod (-15, 0)
- From Dual;
Example
- Select Mod (12.5, 3.5)
- From Dual;
Summary