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

Method SetFinite

decimal.go:231–235  ·  view source on GitHub ↗

SetFinite sets d to x with exponent e and returns d.

(x int64, e int32)

Source from the content-addressed store, hash-verified

229
230// SetFinite sets d to x with exponent e and returns d.
231func (d *Decimal) SetFinite(x int64, e int32) *Decimal {
232 d.setCoefficient(x)
233 d.Exponent = e
234 return d
235}
236
237// setCoefficient sets d's coefficient and negative value to x and its Form
238// to Finite The exponent is not changed. Since the exponent is not changed

Callers 5

SqrtMethod · 0.95
LnMethod · 0.95
ExpMethod · 0.95
SetInt64Method · 0.95
NewFunction · 0.80

Calls 1

setCoefficientMethod · 0.95

Tested by

no test coverage detected