This package browser is in early development. Mind the rough edges.

go-github-com-shopspring-decimal

Arbitrary-precision fixed-point decimal numbers in Golang

Package decimal implements an arbitrary precision fixed-point decimal. Features:

  • the zero-value is 0, and is safe to use without initialization

  • addition, subtraction, multiplication with no loss of precision

  • division with specified precision

  • database/sql serialization/deserialization

  • JSON and XML serialization/deserialization

Installation

Install the latest version of go-github-com-shopspring-decimal as follows:

guix install go-github-com-shopspring-decimal

Or install a particular version:

guix install go-github-com-shopspring-decimal@1.4.0

You can also install packages in augmented, pure or containerized environments for development or simply to try them out without polluting your user profile. See the guix shell documentation for more information.

Badge code

HTML: <a href='http://127.0.0.1:3000/packages/go-github-com-shopspring-decimal/'><img src='http://127.0.0.1:3000/packages/go-github-com-shopspring-decimal/badges/latest-version.svg'></img></a>
Markdown: [![GNU Guix](http://127.0.0.1:3000/packages/go-github-com-shopspring-decimal/badges/latest-version.svg)](http://127.0.0.1:3000/packages/go-github-com-shopspring-decimal/)
Org: [[http://127.0.0.1:3000/packages/go-github-com-shopspring-decimal/][http://127.0.0.1:3000/packages/go-github-com-shopspring-decimal/badges/latest-version.svg]]