public subtract ( java arg0 ) : global::java.math.BigDecimal | ||
arg0 | java | |
return | global::java.math.BigDecimal |
/** * Returns the integer part of this rational number. * * <p>Examples:</p> * <ul> * <li><code>BigRational.valueOf(3.5).integerPart()</code> returns <code>BigRational.valueOf(3)</code></li> * </ul> * * @return the integer part of this rational number */ public BigRational integerPart() { return(of(numerator.subtract(numerator.remainder(denominator)), denominator)); }
/** * Calculates the subtraction of the given complex value from this complex number. * * <p>This methods <strong>does not</strong> modify this instance.</p> * * @param value the {@link BigComplex} value to subtract * @return the calculated {@link BigComplex} result */ public BigComplex subtract(BigComplex value) { return(valueOf( re.subtract(value.re), im.subtract(value.im))); }