Need help with decimal?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

ericlagergren
364 Stars 46 Forks BSD 3-Clause "New" or "Revised" License 268 Commits 22 Opened issues

Description

A high-performance, arbitrary-precision, floating-point decimal library.

Services available

!
?

Need anything else?

Contributors list

# 94,355
Go
Shell
arbitra...
financi...
235 commits
# 261,454
F#
WPF
c-sharp
net-fra...
4 commits
# 287,042
Shell
Go
JavaScr...
React
2 commits
# 11,003
Go
oauth2
tsdb
cockroa...
2 commits
# 13,774
golang
excel
ooxml
binary-...
2 commits
# 638,942
Shell
Go
arbitra...
financi...
1 commit
# 648,239
Shell
Go
arbitra...
financi...
1 commit
# 100,179
elixir-...
sidekiq
elastic
rubynlp
1 commit
# 70,661
GraphQL
Symfony
flex
sqlite3
1 commit
# 8,434
Common ...
Jupyter...
Tensorf...
reliabi...
1 commit
# 10,119
Go
Shell
golang
liverel...
1 commit
# 648,240
Shell
Go
arbitra...
financi...
1 commit
# 148,609
Shell
arbitra...
Scala
decentr...
1 commit
# 21,078
Go
magento
Algolia
cuckoo-...
1 commit
# 351,929
Go
arbitra...
discord...
HTML
1 commit
# 71,061
stripe-...
alipay
golang
github-...
1 commit
# 696,523
Python
Shell
1 commit

decimal Build Status GoDoc

decimal
implements arbitrary precision, decimal floating-point numbers, per the General Decimal Arithmetic specification.

Features

  • Useful zero values. The zero value of a

    decimal.Big
    is 0, just like
    math/big
    .
  • Multiple operating modes. Different operating modes allow you to tailor the package's behavior to your needs. The GDA mode strictly implements the GDA specification, while the Go mode implements familiar Go idioms.

  • High performance.

    decimal
    is consistently one of the fastest arbitrary-precision decimal floating-point libraries, regardless of language.
  • An extensive math library. The

    math/
    subpackage implements elementary and trigonometric functions, continued fractions, and more.
  • A familiar, idiomatic API.

    decimal
    's API follows
    math/big
    's API, so there isn't a steep learning curve.

Installation

go get github.com/ericlagergren/decimal

Documentation

GoDoc

Versioning

decimal
uses Semantic Versioning. The current version is 3.3.1.

decimal
only explicitly supports the two most recent major Go 1.X versions.

License

BSD 3-clause

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.