8000 GitHub - hntrmrrs/erldecimal: Pure Erlang implementation of decimal arithmetic
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

hntrmrrs/erldecimal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

erldecimal, a pure-Erlang implementation of decimal arithmetic

Introduction

Erlang has native big integer support and double-precision floating point support. For some scientific and financial applications, decimal precision is required.

Building

$ ./rebar compile
==> erldecimal (compile)
Compiled src/decimal.erl

Using

1> decimal:to_decimal("12")
{d,0,12,0}
2> decimal:to_list(decimal:mult(decimal:to_decimal("144"), decimal:to_decimal("0.1"))).
"14.4"

About

Pure Erlang implementation of decimal arithmetic

Resources

Stars

Watchers

Forks

Releases

No releases published
2B56

Packages

No packages published
0