MCPcopy Create free account
hub / github.com/cockroachdb/apd / SetInt64

Method SetInt64

decimal.go:226–228  ·  view source on GitHub ↗

SetInt64 sets d to x and returns d.

(x int64)

Source from the content-addressed store, hash-verified

224
225// SetInt64 sets d to x and returns d.
226func (d *Decimal) SetInt64(x int64) *Decimal {
227 return d.SetFinite(x, 0)
228}
229
230// SetFinite sets d to x with exponent e and returns d.
231func (d *Decimal) SetFinite(x int64, e int32) *Decimal {

Callers 9

gdaTestFunction · 0.95
ExpMethod · 0.95
TestSizeFunction · 0.95
ReduceMethod · 0.95
ScanMethod · 0.95
setStringMethod · 0.45
setCoefficientMethod · 0.45
CmpMethod · 0.45
ModfMethod · 0.45

Calls 1

SetFiniteMethod · 0.95

Tested by 2

gdaTestFunction · 0.76
TestSizeFunction · 0.76