JoshuaHall/elm-fraction/1.0.0

NOTE: the latest version is 2.2.0

elm-fraction

This library provides a safe and simple API to deal with fractions.

Examples:

Fraction.create 1 2
    |> Maybe.map Fraction.toFloat == Just 0.5
Fraction.create 24 37
    |> Maybe.map Fraction.simplify |> Maybe.map Fraction.toTuple == Just (24, 37)