ZVON > References > Haskell reference
| Indexes | Syntax | >> Prelude << | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | IO | Directory | System | Time | Locale | CPUTime | Random

Module: Prelude
Function: div
Type: Integral a => a -> a -> a
Class: Integral
Priority: 7
Description: returns how many times the first number can be divided by the second one
Related: (/), quot, quotRem, recip, rem
Keywords: division

Example 1

Input: 6 `div` 2

Output: 3

Example 2

Input: 8 `div` 3

Output: 2