Skip to content

lewidot/dysmal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Gleam wrapper for the erlang_decimal package

Resources

Stars

Watchers

Forks

Packages

No packages published