setBig sets b to d's coefficient with negative.
(b *BigInt)
| 409 | |
| 410 | // setBig sets b to d's coefficient with negative. |
| 411 | func (d *Decimal) setBig(b *BigInt) *BigInt { |
| 412 | b.Set(&d.Coeff) |
| 413 | if d.Negative { |
| 414 | b.Neg(b) |
| 415 | } |
| 416 | return b |
| 417 | } |
| 418 | |
| 419 | // CmpTotal compares d and x using their abstract representation rather |
| 420 | // than their numerical value. A total ordering is defined for all possible |