dysmal

Package Version Hex Docs Erlang Target

Typesafe bindings to the erlang_decimal package.

gleam add dysmal
import dysmal

pub fn main() -> Nil {
  123.45
  |> dysmal.from_float
  |> dysmal.multiply(dysmal.from_int(3))
  |> dysmal.to_string
  |> io.println // "370.35"
}

Further documentation can be found at https://hexdocs.pm/dysmal.

Development

gleam test  # Run the tests
Search Document