Top 0.8% forks on proxy.golang.org
proxy.golang.org : github.com/shopspring/decimaL
Multiprecision decimal numbers. For floating-point formatting only; not general purpose. Only operations are assign and (binary) left/right shift. Can do binary floating point in multiprecision decimal precisely because 2 divides 10; cannot do decimal floating point in multiprecision binary precisely. Package decimal implements an arbitrary precision fixed-point decimal. To use as part of a struct: The zero-value of a Decimal is 0, as you would expect. The best way to create a new Decimal is to use decimal.NewFromString, ex: NOTE: This can "only" represent numbers with a maximum of 2^31 digits after the decimal point. Multiprecision decimal numbers. For floating-point formatting only; not general purpose. Only operations are assign and (binary) left/right shift. Can do binary floating point in multiprecision decimal precisely because 2 divides 10; cannot do decimal floating point in multiprecision binary precisely.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/shopspring/decima%21l
Keywords:
bignumber
, decimals
, go
, golang
, money
, precision
License: MIT
Latest release: about 1 year ago
First release: over 7 years ago
Namespace: github.com/shopspring
Stars: 4,891 on GitHub
Forks: 528 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 2 days ago