decimal
decimal copied to clipboard
Add NewFromUint64
Adds a new constructor NewFromUint64(uint64)
, which utilises big.Int.SetUint64()
existing in Go at least since 1.7 (min supported by decimal
): https://pkg.go.dev/math/[email protected]#Int.SetUint64
Improves tests of existing constructors from signed int, covering the minimal negative value.