> 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/fractional-fractional-types.md).

# Fractional – Fractional Types

The `Fractional` class extends the `Num` class and supports two additional methods for working with floating-point numbers, fractional division and reciprocation:

```haskell
(/) :: a -> a -> a
recip :: a -> a

ghci> 5.0 / 2.0
2.5

ghci> recip 10 -- reciprocal is simply 1 / x
0.1
```
