Mod returns d % d2.
(d2 Decimal)
| 671 | |
| 672 | // Mod returns d % d2. |
| 673 | func (d Decimal) Mod(d2 Decimal) Decimal { |
| 674 | _, r := d.QuoRem(d2, 0) |
| 675 | return r |
| 676 | } |
| 677 | |
| 678 | // Pow returns d to the power of d2. |
| 679 | // When exponent is negative the returned decimal will have maximum precision of PowPrecisionNegativeExponent places after decimal point. |