Registry / utility / cockroachdb-apd-v3

cockroachdb-apd-v3

JSON →
library3.2.3gogounverified

Package apd implements arbitrary-precision decimal arithmetic.

go get github.com/cockroachdb/apd/v3
INSTALL
IMPORT
SIG · COCKROACHDB-APD-V3
C
cockroachdb-apd-v3
utilitygov3.2.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

apd
github.com/cockroachdb/apd/v3

Divides 10 by 3 with arbitrary precision and prints the result.

package main import ( "fmt" "github.com/cockroachdb/apd/v3" ) func main() { a := apd.New(10, 0) b := apd.New(3, 0) var result apd.Decimal ctx := apd.BaseContext.WithPrecision(10) ctx.Quo(&result, a, b) fmt.Println(&result) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.2.3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
cockroachdb-apd-v3 — go get cockroachdb-apd-v3 · libregistry