Skip to content

ericlagergren/decimal

Folders and files

NameName
Last commit message
Last commit date
Oct 22, 2021
Oct 28, 2021
Apr 8, 2019
Apr 11, 2024
Oct 22, 2021
Oct 22, 2021
Sep 12, 2019
Apr 8, 2019
Nov 20, 2022
Nov 1, 2022
Feb 4, 2019
Jan 28, 2018
Feb 4, 2019
Apr 20, 2019
Oct 22, 2021
Oct 28, 2021
Oct 22, 2021
Oct 22, 2021
Oct 22, 2021
Oct 22, 2021
Oct 22, 2021
Oct 22, 2021
Jul 24, 2019
Jul 24, 2019
Oct 22, 2021
Dec 15, 2017
Oct 22, 2021
Oct 22, 2021
Oct 22, 2021
Oct 22, 2021
Sep 12, 2019
Apr 8, 2019
Mar 13, 2018
Nov 1, 2022
Nov 1, 2022
Oct 22, 2021
Oct 22, 2021
Apr 8, 2019
Jan 6, 2018
Oct 22, 2021
Oct 22, 2021
Sep 12, 2019
Mar 5, 2024
Mar 5, 2024
Oct 22, 2021
Oct 22, 2021
Oct 22, 2021

Repository files navigation

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