pmod
description
Syntax
1. BIGINT PMOD(BIGINT x, BIGINT y)
2. DOUBLE PMOD(DOUBLE x, DOUBLE y)
Returns the positive result of x mod y in the residue systems. Formally, return (x%y+y)%y.
example
1. MySQL [test]> SELECT PMOD(13,5);
2. +-------------+
3. | pmod(13, 5) |
4. +-------------+
5. | 3 |
6. +-------------+
8. MySQL [test]> SELECT PMOD(-13,5);
9. +-------------+
10. | pmod(-13, 5) |
11. +-------------+
12. | 2 |
13. +-------------+
keywords
1. PMOD
