> For the complete documentation index, see [llms.txt](https://haskell.hpmeducation.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://haskell.hpmeducation.com/type-classes/basic-classes/integral-integral-types.md).

# Integral – Integral Types

The `Integral` class extends the `Num` class and supports two additional methods for working with integral numbers, integer division and integer remainder:

```haskell
div, mod :: a -> a -> a

ghci> 5 `div` 3
1

ghci> 5 `mod` 3
2
```

Basic types `Int` and `Integer` are instances of the `Integral` class.
