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/%21d%21e%21c%21i%21m%21a%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: 6,255 on GitHub
Forks: 616 on GitHub
Total Commits: 168
Committers: 68
Average commits per author: 2.471
Development Distribution Score (DDS): 0.815
More commit stats: commits.ecosyste.ms
See more repository details: repos.ecosyste.ms
Last synced: about 21 hours ago