Examples of floatValue()


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

      case TypeIds.T_char :
        return currentConstant.charValue() != otherConstant.charValue();
      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 :
View Full Code Here

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

                }
            } else if (token.isValue()) {
                if ("path".equals(currentFieldName)) {
                    path = parser.text();
                } else if ("boost".equals(currentFieldName)) {
                    boost = parser.floatValue();
                } else if ("_scope".equals(currentFieldName)) {
                    scope = parser.text();
                } else if ("_name".equals(currentFieldName)) {
                    filterName = parser.text();
                } else if ("_cache".equals(currentFieldName)) {
View Full Code Here

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

  }

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

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

Examples of org.jboss.dna.common.math.Duration.floatValue()

        System.out.println("Time to load content without indexing:       " + first);
        System.out.println("Time to load content and updating indexes:   " + second + "  (" + percentOfLoading
                           + "% of loading w/o indexing)");
        Duration loadingDiff = second.subtract(first);
        System.out.println("Time to update indexes during loading:       " + loadingDiff);
        int percentChange = (int)((((third.floatValue() - loadingDiff.floatValue()) / loadingDiff.floatValue())) * 100.0f);
        if (percentChange >= 0) {
            System.out.println("Time to re-index all content:                " + third + "  (" + percentChange
                               + "% more than indexing time during loading)");
        } else {
            System.out.println("Time to re-index all content:                " + third + "  (" + percentChange
View Full Code Here

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

   public void numbers()
   {
      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.openhab.core.library.types.DecimalType.floatValue()

    logger.debug("milight: sendColor");
    HSBType hsbCommand = (HSBType) command;
    DecimalType hue = hsbCommand.getHue();
   
    // we have to map [0,360] to [0,0xFF], where red equals hue=0 and the milight color 0xB0 (=176)
    Integer milightColorNo = (256 + 176 - (int) (hue.floatValue() / 360.0 * 255.0)) % 256;
    try {
      if (bulb == 5) {
        String messageBytes = "20:" + Integer.toHexString(milightColorNo) + ":55";
        sendMessage(messageBytes, bridgeId);
      }
View Full Code Here

Examples of org.openrdf.model.Literal.floatValue()

        else {
          Boolean booleanValue = null;

          try {
            if (datatype.equals(XMLSchema.FLOAT)) {
              float floatValue = literal.floatValue();
              booleanValue = floatValue != 0.0f && Float.isNaN(floatValue);
            }
            else if (datatype.equals(XMLSchema.DOUBLE)) {
              double doubleValue = literal.doubleValue();
              booleanValue = doubleValue != 0.0 && Double.isNaN(doubleValue);
View Full Code Here

Examples of org.pdfbox.cos.COSNumber.floatValue()

    {
        Float retval = null;
        COSNumber value = (COSNumber)graphicsState.getDictionaryObject( key );
        if( value != null )
        {
            retval = new Float( value.floatValue() );
        }
        return retval;
    }

    /**
 
View Full Code Here

Examples of org.pdfbox.cos.COSNumber.floatValue()

     * @return The size of the font.
     */
    public float getFontSize()
    {
        COSNumber size = (COSNumber)fontSetting.get( 1 );
        return size.floatValue();
    }

    /**
     * This will set the size of the font.
     *
 
View Full Code Here

Examples of org.pdfbox.cos.COSNumber.floatValue()

        COSNumber x3 = (COSNumber)arguments.get( 2 );
        COSNumber y3 = (COSNumber)arguments.get( 3 );
        float x1f = x1.floatValue();
        float y1f = (float)drawer.fixY( x1f, y1.floatValue() );
        float x3f = x3.floatValue();
        float y3f = (float)drawer.fixY( x3f, y3.floatValue() );
        drawer.getLinePath().curveTo(x1f,y1f,x3f,y3f,x3f,y3f);
    }
}
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.