Registry / serialization / admpub-decimal

admpub-decimal

JSON →
library1.3.2gogounverified

Arbitrary precision fixed-point decimal arithmetic library for Go, supporting creation from strings and struct embedding.

go get github.com/admpub/decimal
INSTALL
IMPORT
SIG · ADMPUB-DECIMAL
A
admpub-decimal
serializationgov1.3.2
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.

decimal
github.com/admpub/decimal

Create a decimal from a string and print it

package main import ( "fmt" "github.com/admpub/decimal" ) func main() { d, _ := decimal.NewFromString("123.456") fmt.Println(d) }
Debug
Known issues
gotchaMaximum of 2^31 digits after decimal point
fix
Ensure decimal values do not exceed 2^31 fractional digits
affects: all
Upgrade
Version history
1.3.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
57 hits · last 30 days
node
48
OpenAI (training)
1
Resources
admpub-decimal — go get admpub-decimal · libregistry