(Precise other)
| 41 | |
| 42 | // ---------- ops ---------- |
| 43 | public Precise mul(Precise other) { |
| 44 | BigInteger integer = this.integer.multiply(other.integer); |
| 45 | int decimals = toInt(this.decimals) + toInt(other.decimals); |
| 46 | return new Precise(integer.toString(), decimals); |
| 47 | } |
| 48 | |
| 49 | public Precise div(Precise other) { |
| 50 | return div(other, 18); |