Package com.barchart.util.values.api

Examples of com.barchart.util.values.api.PriceValue.exponent()


  }

  @Override
  public Price pointValue() {
    final PriceValue temp = get(InstrumentField.POINT_VALUE);
    return factory.newPrice(temp.mantissa(), temp.exponent());
  }

  @Override
  public Fraction displayFraction() {
    return get(InstrumentField.DISPLAY_FRACTION);
View Full Code Here


      builder.setContractPointValue(buildDecimal(0,0));
    } else {
      PriceValue pricePoint = ValueBuilder.newPrice(Double
          .valueOf(pricePointString));
      builder.setContractPointValue(buildDecimal(
          pricePoint.mantissa(), pricePoint.exponent()));
    }
   
    /* display fraction base : decimal(10) vs binary(2), etc. */
    builder.setDisplayBase((int)frac.fraction.base());
    builder.setDisplayExponent(frac.fraction.exponent());
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.