add() 공개 메소드

public add ( java arg0 ) : global::java.math.BigDecimal
arg0 java
리턴 global::java.math.BigDecimal
예제 #1
0
 /**
  * Calculates the increment of this rational number (+ 1).
  *
  * <p>This is functionally identical to
  * <code>this.add(BigRational.ONE)</code>
  * but slightly faster.</p>
  *
  * <p>The result has no loss of precision.</p>
  *
  * @return the incremented rational number
  */
 public BigRational increment()
 {
     return(of(numerator.add(denominator), denominator));
 }
예제 #2
0
 /**
  * Calculates the addition of the given complex value to this complex number.
  *
  * <p>This methods <strong>does not</strong> modify this instance.</p>
  *
  * @param value the {@link BigComplex} value to add
  * @return the calculated {@link BigComplex} result
  */
 public BigComplex add(BigComplex value)
 {
     return(valueOf(
                re.add(value.re),
                im.add(value.im)));
 }