Examples of exponent()


Examples of com.barchart.util.value.api.Price.exponent()

      }
      final SizeValue size = LIMIT;
      // TODO ValueConverter
      final Price tempStep = instrument.tickSize();
      final PriceValue step = ValueBuilder.newPrice(tempStep.mantissa(),
          tempStep.exponent());

      final VarBookDDF varBook = new VarBookDDF(instrument, type, size, step);
      final VarBookTopDDF varBookTop = new VarBookTopDDF(varBook);

      set(BOOK, varBook);
View Full Code Here

Examples of com.barchart.util.value.api.Price.exponent()

      }
      final SizeValue size = LIMIT;
      // TODO ValueConverter
      final Price tempStep = instrument.tickSize();
      final PriceValue step = ValueBuilder.newPrice(tempStep.mantissa(),
          tempStep.exponent());

      final VarBookDDF varBook = new VarBookDDF(instrument, type, size, step);
      final VarBookTopDDF varBookTop = new VarBookTopDDF(varBook);

      set(BOOK, varBook);
View Full Code Here

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

    if (fraction.isNull()) {
      log.error("fraction.isNull()");
      return false;
    }

    if (priceStep.exponent() != fraction.decimalExponent) {
      log.error("priceStep.exponent() != fraction.decimalExponent");
      return false;
    }

    return true;
View Full Code Here

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

    if (fraction.isNull()) {
      log.error("fraction.isNull()");
      return false;
    }

    if (priceStep.exponent() != fraction.decimalExponent) {
      log.error("priceStep.exponent() != fraction.decimalExponent");
      return false;
    }

    return true;
View Full Code Here

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

  }

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

  @Override
  public Price pointValue() {
    final PriceValue temp = get(InstrumentField.POINT_VALUE);
View Full Code Here

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

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

      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

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

        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

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

      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

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

    if (fraction.isNull()) {
      log.error("fraction.isNull()");
      return false;
    }

    if (priceStep.exponent() != fraction.decimalExponent) {
      log.error("priceStep.exponent() != fraction.decimalExponent");
      return false;
    }

    return true;
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.