Package ral

Examples of ral.Real


public class Decimal {

  private Real value;

  public Decimal() {
    this.value = new Real();
  }
View Full Code Here


  public Decimal() {
    this.value = new Real();
  }

  public Decimal(Decimal value) {
    this.value = new Real(value.value);
  }
View Full Code Here

  public Decimal(double value) {
    this(new BigDecimal(value));
  }

  public Decimal(BigDecimal value) {
    this.value = new Real(value.toString());
  }
View Full Code Here

  public Decimal(BigDecimal value) {
    this.value = new Real(value.toString());
  }

  public Decimal(Real value) {
    this.value = new Real(value);
  }
View Full Code Here

  public Decimal(Real value) {
    this.value = new Real(value);
  }

  public Decimal(String value) {
    this.value = new Real(value);
  }
View Full Code Here

  public Decimal(String value) {
    this.value = new Real(value);
  }

  public Decimal(int value) {
    this.value = new Real(value);
  }
View Full Code Here

  public Decimal(int value) {
    this.value = new Real(value);
  }

  public Decimal(long value) {
    this.value = new Real(value);
  }
View Full Code Here

  public Decimal(long value) {
    this.value = new Real(value);
  }

  public Decimal(String value, int base) {
    this.value = new Real(value, base);
  }
View Full Code Here

  public Decimal(String value, int base) {
    this.value = new Real(value, base);
  }

  public Decimal(byte[] date, int offset) {
    this.value = new Real(date, offset);
  }
View Full Code Here

   * Executes addition and returns value of {@code this.value} + {@code other.value} according to {@link ral.Real#add(ral.Real)}.
   * @param other summand.
   * @return new instance of {@code Decimal} which value is {@code this.value} + {@code other.value}.
   */
  public Decimal add(final Decimal other) {
    Real result = new Real(this.value);
    result.add(other.value);
    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.