Div returns d / d2. If it doesn't divide exactly, the result will have DivisionPrecision digits after the decimal point.
(d2 Decimal)
| 588 | // Div returns d / d2. If it doesn't divide exactly, the result will have |
| 589 | // DivisionPrecision digits after the decimal point. |
| 590 | func (d Decimal) Div(d2 Decimal) Decimal { |
| 591 | return d.DivRound(d2, int32(DivisionPrecision)) |
| 592 | } |
| 593 | |
| 594 | // QuoRem does division with remainder |
| 595 | // d.QuoRem(d2,precision) returns quotient q and remainder r such that |