Abs sets d to |x| and returns d.
(x *Decimal)
| 696 | |
| 697 | // Abs sets d to |x| and returns d. |
| 698 | func (d *Decimal) Abs(x *Decimal) *Decimal { |
| 699 | d.Set(x) |
| 700 | d.Negative = false |
| 701 | return d |
| 702 | } |
| 703 | |
| 704 | // Reduce sets d to x with all trailing zeros removed and returns d and the |
| 705 | // number of zeros removed. |
no test coverage detected