SetInt64 sets d to x and returns d.
(x int64)
| 224 | |
| 225 | // SetInt64 sets d to x and returns d. |
| 226 | func (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. |
| 231 | func (d *Decimal) SetFinite(x int64, e int32) *Decimal { |