| ZVON > References > Haskell reference |
| Intro / Search / ZVON |
| | Indexes | Syntax | >> Prelude << | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | IO | Directory | System | Time | Locale | CPUTime | Random |
| Module: | Prelude |
|---|---|
| Function: | mod |
| Type: | Integral a => a -> a -> a |
| Class: | Integral |
| Priority: | 7 |
| Description: | modulo |
| Related: | |
| Keywords: | division, modulo |
| MATHWORLD | Congruence |
Input: 3 `mod` 12
Output: 3
Input: 33 `mod` 12
Output: 9
Input: 33 `mod` -12
Output: -3
Input: -33 `mod` 12
Output: -9
Input: -33 `mod` -12
Output: 3