Go Python Ragel Java C Assembly Shell
Clone or download
Latest commit 962b774 Jul 11, 2018
Permalink
Failed to load latest commit information.
_testdata generate new test data once per day Mar 13, 2018
benchmarks *: spelling fixes, very minor optimizations, drop huge pack file. Feb 6, 2018
internal Bug#99. Comparison fails under some conditions (#100) Jun 11, 2018
math {math,misc}: fix symlink Jul 4, 2018
misc {math,misc}: fix symlink Jul 4, 2018
sql/postgres sql/postgres: let Decimal.Scan accept both string and []byte Mar 7, 2018
suite fix %f formatting issue Mar 6, 2018
.gitignore *: minor fixes to Log, Sqrt, Int64, ... Feb 1, 2018
.travis.yml generate new test data once per day Mar 13, 2018
AUTHORS add Timothy Ham to AUTHORS Jun 16, 2018
LICENSE Nathanhack feature/trig (#68) Jan 28, 2018
README-fr.md fix french genders May 14, 2018
README.md v3.1 Feb 1, 2018
big.go fix edge case with SetUint64 Jul 10, 2018
big_ctx.go fix csaes where c.Inflated is assigned to z.compact, not z.unscaled Mar 22, 2018
big_test.go math: minor precision fixes for Log, Log10, Sqrt, and Exp Jan 30, 2018
context.go *: remove old compatibility code in favor of Go 1.9, 1.10 features Feb 18, 2018
context_test.go misc: move suite/ tests to *.tar.gz, better implement IEEE test suite Sep 19, 2017
doc.go add to package docs Dec 15, 2017
example_calculator_test.go fix go1.10 compile issues (tip) + pow.BigTen testing bug Nov 28, 2017
example_decimal_test.go ensure Format respects %f's precision, ensure Cmp doesn't affect z. Feb 12, 2018
format.go fix Travis CI timeout Mar 13, 2018
format_string.go {.,math}: add basic arithmetic to Context for context-specific arith; Dec 14, 2017
format_test.go add rudimentary tests for Format Mar 13, 2018
issues_test.go fix edge case with SetUint64 Jul 10, 2018
operatingmode_string.go {.,math}: add basic arithmetic to Context for context-specific arith; Dec 14, 2017
parity.md {misc,.}: add Reduce, RoundToInt, NextMinus, NextPlus Jan 6, 2018
roundingmode_string.go {.,math}: add basic arithmetic to Context for context-specific arith; Dec 14, 2017
scan.go handle case when scanning string where v == c.Inflated Mar 22, 2018
scan_test.go add internat/test as it was clobbered by .gitignore Dec 7, 2017
util.go *: remove old compatibility code in favor of Go 1.9, 1.10 features Feb 18, 2018
zdebug.go {.,internal}: fix OOB panic, cleanup dead functions, reduce allocs Oct 31, 2017
zdebug0.go version 3.0! Jan 30, 2018

README.md

decimal Build Status GoDoc

decimal is a high-performance, arbitrary precision, floating-point decimal library implementing the General Decimal Arithmetic specification.

Features

  • Zero-values are safe to use without initialization.
  • Multiple operating modes (GDA, Go) to fit your use cases.
  • High performance.
  • A math library with elementary and trigonometric functions, continued fractions, and more.
  • A familiar, idiomatic API.

Installation

go get github.com/ericlagergren/decimal

Documentation

Godoc

Versioning

decimal uses Semantic Versioning. The current version is 3.1.

License

The BSD 3-clause