Arbitrary-precision Decimal numbers for Elm.
import Decimal exposing (Decimal)
centsToDecimalString : Int -> String
centsToDecimalString totalCents =
Decimal.fromInt totalCents
|> Decimal.mul (Decimal.intWithExponent 1 -2)
|> Decimal.toString
|> ((++) "$")
MIT
Forked from javcasas' elm-decimal