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/sh%21opspring/decimal
Keywords:
bignumber
, decimals
, go
, golang
, money
, precision
License: MIT
Latest release: over 1 year ago
First release: almost 8 years ago
Namespace: github.com/shOpspring
Stars: 6,922 on GitHub
Forks: 647 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: 3 days ago