Package ral

Examples of ral.Real


   * Executes subtraction and returns value of {@code this.value} - {@code other.value} according to {@link ral.Real#sub(ral.Real)}.
   * @param other subtrahend.
   * @return new instance of {@code Decimal} which value is {@code this.value} - {@code other.value}.
   */
  public Decimal sub(final Decimal other) {
    Real result = new Real(this.value);
    result.sub(other.value);
    return new Decimal(result);
  }
View Full Code Here


  /**
   * Calculates square of {@code this.value} according to {@link ral.Real#sqr()}.
   * @return new instance of {@code Decimal} which value is square of {@code this.value}.
   */
  public Decimal sqr() {
    Real result = new Real(this.value);
    result.sqr();
    return new Decimal(result);
  }
View Full Code Here

  /**
   * Calculates square root of {@code this.value} according to {@link ral.Real#sqrt()}.
   * @return new instance of {@code Decimal} which value is square root of {@code this.value}.
   */
  public Decimal sqrt() {
    Real result = new Real(this.value);
    result.sqrt();
    return new Decimal(result);
  }
View Full Code Here

TOP

Related Classes of ral.Real

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.