| 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: | rem |
| Type: | Integral a => a -> a -> a |
| Class: | Integral |
| Priority: | 7 |
| Description: | returns reminder of integer division of the arguments |
| Related: | (/), div, quot, quotRem, recip |
| Keywords: | division |
Input: 3 `rem` 12
Output: 3
Input: 33 `rem` 12
Output: 9
Input: 33 `rem` -12
Output: 9
Input: -33 `rem` 12
Output: -9
Input: -33 `rem` -12
Output: -9