cockroachdb / apd

Arbitrary-precision decimals for Go
https://pkg.go.dev/github.com/cockroachdb/apd/v2
Apache License 2.0
664 stars 36 forks source link

apd: add apd.BigInt / math/big.Int interop methods #108

Closed nvanbenschoten closed 2 years ago

nvanbenschoten commented 2 years ago

This commit adds a MathBigInt and a SetMathBigInt method to BigInt.

These allow the type to more easily interoperate with math/big.Int.