Examples of doubleValue()


Examples of org.aspectj.org.eclipse.jdt.internal.compiler.impl.Constant.doubleValue()

      case TypeIds.T_byte:
        return new Byte(c.byteValue());
      case TypeIds.T_char:
        return new Character(c.charValue());
      case TypeIds.T_double:
        return new Double(c.doubleValue());
      case TypeIds.T_float:
        return new Float(c.floatValue());
      case TypeIds.T_int:
        return new Integer(c.intValue());
      case TypeIds.T_long:
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.impl.Constant.doubleValue()

      case TypeIds.T_long :
        return currentConstant.longValue() != otherConstant.longValue();
      case TypeIds.T_float :
        return currentConstant.floatValue() != otherConstant.floatValue();
      case TypeIds.T_double :
        return currentConstant.doubleValue() != otherConstant.doubleValue();
      case TypeIds.T_boolean :
        return currentConstant.booleanValue() != otherConstant.booleanValue();
      case TypeIds.T_JavaLangString :
        return !currentConstant.stringValue().equals(otherConstant.stringValue());
    }
View Full Code Here

Examples of org.elasticsearch.common.xcontent.XContentParser.doubleValue()

        while ((token = parser.nextToken()) != XContentParser.Token.END_OBJECT) {
            if (token == XContentParser.Token.FIELD_NAME) {
                currentFieldName = parser.currentName();
            } else if (token == XContentParser.Token.START_ARRAY) {
                token = parser.nextToken();
                lon = parser.doubleValue();
                token = parser.nextToken();
                lat = parser.doubleValue();
                while ((token = parser.nextToken()) != XContentParser.Token.END_ARRAY) {

                }
View Full Code Here

Examples of org.formulacompiler.compiler.internal.Duration.doubleValue()

        final LocalDate localDate = (LocalDate) constantValue;
        _stringBuilder.append( localDate.doubleValue() );
      }
      else if (constantValue instanceof Duration) {
        final Duration duration = (Duration) constantValue;
        _stringBuilder.append( duration.doubleValue() );
      }
      else if (constantValue instanceof Number) {
        _stringBuilder.append( constantValue.toString() );
      }
      else if (constantValue instanceof String) {
View Full Code Here

Examples of org.formulacompiler.compiler.internal.LocalDate.doubleValue()

      else if (constantValue instanceof Date) {
        throw new IllegalArgumentException( "Saving dates is not supported." );
      }
      else if (constantValue instanceof LocalDate) {
        final LocalDate localDate = (LocalDate) constantValue;
        _stringBuilder.append( localDate.doubleValue() );
      }
      else if (constantValue instanceof Duration) {
        final Duration duration = (Duration) constantValue;
        _stringBuilder.append( duration.doubleValue() );
      }
View Full Code Here

Examples of org.gdbms.engine.values.NumericValue.doubleValue()

            }
            if (nv.getDecimalDigitsCount() > 0) {
                /*
                 * Don't count the decimal point: length() - 1
                 */
                if (Double.toString(nv.doubleValue()).length() - 1 > precision) {
                    return "too long";
                }
            } else {
                if (Long.toString(nv.longValue()).length() > precision) {
                    return "too long";
View Full Code Here

Examples of org.geotools.measure.Measure.doubleValue()

                    Feature f = (Feature)sItr.next();
                    if (f.getDefaultGeometry() == null) continue;
                    DistanceOp op = new DistanceOp(request.getPoint(), f.getDefaultGeometry());
                    Coordinate[] co = op.closestPoints();
                    Measure m = DefaultGeographicCRS.WGS84.distance(new double[] { co[0].x, co[0].y, }, new double[] { co[1].x, co[1].y, });
                    if (m.doubleValue() > nearestDistance) continue;
                    nearestFeature = f;
                    nearestDistance = m.doubleValue();
                    nearestBearing = calcBearing(co);
                }
View Full Code Here

Examples of org.jamesii.core.math.complex.Complex.doubleValue()

  }

  /** Tests the {@link Complex#doubleValue()} method. */
  public void testDoubleValue() {
    Complex c = new Complex(Math.random() * 100, Math.random() * 100);
    assertEquals(c.doubleValue(), c.getReal());
  }

  /** Tests the {@link Complex#floatValue()} method. */
  public void testFloatValue() {
    Complex c = new Complex(Math.random() * 100, Math.random() * 100);
 
View Full Code Here

Examples of org.jboss.resteasy.core.request.QualityValue.doubleValue()

   {
      QualityValue x = QualityValue.valueOf("0.08");
      assertEquals(80, x.intValue());
      assertEquals(80L, x.longValue());
      assertEquals(0.08f, x.floatValue());
      assertEquals(0.08d, x.doubleValue());
   }

}
View Full Code Here

Examples of org.jenetics.DoubleGene.doubleValue()

    private static final long serialVersionUID = 1L;

    @Override
    public Double apply(final Genotype<DoubleGene> genotype) {
      final DoubleGene gene = genotype.getChromosome().getGene(0);
      final double radians = toRadians(gene.doubleValue());
      return Math.log(sin(radians)*cos(radians));
    }
  }

  public static void main(String[] args) {
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.