SetFinite sets d to x with exponent e and returns d.
(x int64, e int32)
| 229 | |
| 230 | // SetFinite sets d to x with exponent e and returns d. |
| 231 | func (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 |