remainder() public method

public remainder ( java arg0 ) : global::java.math.BigDecimal
arg0 java
return global::java.math.BigDecimal
Beispiel #1
0
 /**
  * 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));
 }