Examples of doubleValue()


Examples of booton.translator.annotation.PrimitiveMarker.doubleValue()

        assert annotation != null;
        assert annotation instanceof Annotation;
        assert annotation instanceof PrimitiveMarker;
        assert annotation.intValue() == 10;
        assert annotation.booleanValue();
        assert annotation.doubleValue() == 3.14;
        assert annotation.annotationType() == PrimitiveMarker.class;

        assert annotation == method.getAnnotation(PrimitiveMarker.class);
    }
View Full Code Here

Examples of com.drew.lang.Rational.doubleValue()

        if (!_directory.containsTag(ExifDirectory.TAG_DIGITAL_ZOOM_RATIO)) return null;
        Rational rational = _directory.getRational(ExifDirectory.TAG_DIGITAL_ZOOM_RATIO);
        if (rational.getNumerator()==0)
            return "Digital zoom not used.";

        return SimpleDecimalFormatter.format(rational.doubleValue());
    }

    public String getWhiteBalanceModeDescription() throws MetadataException
    {
        if (!_directory.containsTag(ExifDirectory.TAG_WHITE_BALANCE_MODE)) return null;
View Full Code Here

Examples of com.dtrules.interpreter.IRObject.doubleValue()

        }

        public void execute(DTState state) throws RulesException {
            IRObject b = state.datapop();
            IRObject a = state.datapop();
            state.datapush(RDouble.getRDoubleValue(a.doubleValue()+b.doubleValue()));
        }
    }
   
   
   
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangDouble.doubleValue()

    public void dump(OtpErlangObject arg, StringBuffer resultHolder) {
      assert (arg instanceof OtpErlangDouble)
          || (arg instanceof OtpErlangFloat);
      if (arg instanceof OtpErlangDouble) {
        OtpErlangDouble doubleValue = (OtpErlangDouble) arg;
        resultHolder.append(doubleValue.doubleValue());
      } else if (arg instanceof OtpErlangFloat) {
        OtpErlangDouble doubleValue = (OtpErlangDouble) arg;
        resultHolder.append(doubleValue.doubleValue());
      }
    }
View Full Code Here

Examples of com.extentech.toolkit.CompatibleBigDecimal.doubleValue()

      // check if we should be returning a whole number or a decimal
      int moveLen = num.indexOf("E") - num.indexOf(".") - 1;
      if (expNum >= moveLen) {
        if (negative) {
          return "-"
              + String.valueOf(Math.round(outNumD.doubleValue()));
        } else {
          return String.valueOf(Math.round(outNumD.doubleValue()));
        }
      }
      Object[] args = new Object[0];
View Full Code Here

Examples of com.fasterxml.jackson.databind.JsonNode.doubleValue()

            } else if (e.isLong()) {
                return e.asLong();
            } else if (e.isBigDecimal()) {
                return e.decimalValue();
            } else if (e.isDouble()) {
                return e.doubleValue();
            } else if (e.isFloat()) {
                return e.floatValue();
            } else if (e.isBigDecimal()) {
                return e.decimalValue();
            } else if (e.isNull()) {
View Full Code Here

Examples of com.google.gwt.json.client.JSONNumber.doubleValue()

    }
  }

  protected Double getDouble(int index) {
    JSONNumber num = getNumber(index);
    return num == null ? null : new Double(num.doubleValue());
  }

  protected Integer getInteger(int index) {
    JSONNumber num = getNumber(index);
    return num == null ? null : new Integer((int) num.doubleValue());
View Full Code Here

Examples of com.ibm.sbt.util.DataNavigator.doubleValue()

                entry.setTitle(result[result.length - 1]);
                entry.setUpdated(nav.dateValue("modified"));
                entry.setBytes(nav.intValue("bytes"));
                entry.setSize(nav.stringValue("size"));
                entry.setAuthorName(params.get("subscriberId"));
                entry.setVersion(String.valueOf( nav.doubleValue("revision")));
                boolean isDir = nav.booleanValue("is_dir");
                entry.setIsDirectory(isDir);
                if(!isDir){
                    entry.setMimeType(nav.stringValue("mime_type"));
                }
View Full Code Here

Examples of com.lightcrafts.utils.Rational.doubleValue()

            }
            case CIFF_SI_SHUTTER_SPEED: {
                final int apex = value.getIntValue();
                final Rational speed =
                    MetadataUtil.convertShutterSpeedFromAPEX( apex );
                return MetadataUtil.shutterSpeedString( speed.doubleValue() );
            }
            default:
                return super.valueToString( value );
        }
    }
View Full Code Here

Examples of com.vividsolutions.jts.math.DD.doubleValue()

        .multiply(triAreaDDSlow(ax, ay, bx, by, px, py));
    DD pTerm = (px.multiply(px).add(py.multiply(py)))
        .multiply(triAreaDDSlow(ax, ay, bx, by, cx, cy));

    DD sum = aTerm.subtract(bTerm).add(cTerm).subtract(pTerm);
    boolean isInCircle = sum.doubleValue() > 0;

    return isInCircle;
  }

  /**
 
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.