List of usage examples for java.lang Double valueOf
@HotSpotIntrinsicCandidate public static Double valueOf(double d)
From source file:Main.java
public static double cri2996Formula1() { double rs = 0; double h1 = Double.valueOf(DATA_MAP.get("h1")); double h2 = Double.valueOf(DATA_MAP.get("h2")); double h3 = Double.valueOf(DATA_MAP.get("h3")); rs = h1 - (h2 - CRI2_996_NF / 35.8) - h3; return rs;//from w w w . j a va2 s . co m }
From source file:Main.java
public static double cri2996Formula3() { double rs = 0; double h6 = Double.valueOf(DATA_MAP.get("h6")); double h7 = Double.valueOf(DATA_MAP.get("h7")); double h8 = Double.valueOf(DATA_MAP.get("h8")); rs = h7 - h6 - (h8 - CRI2_996_VF / 50); return rs;// w ww . j av a 2s . co m }
From source file:Main.java
public static double cri1999Formula4() { double rs = 0; double h8 = Double.valueOf(DATA_MAP.get("h8")); double h9 = Double.valueOf(DATA_MAP.get("h9")); rs = h8 - h9 + CRI1_999_RAG;//from w w w . j a va2 s . co m return rs; }
From source file:Main.java
public static double caterpillarFormula3() { double rs = 0; double h5 = Double.valueOf(DATA_MAP.get("h5")); double h6 = Double.valueOf(DATA_MAP.get("h6")); rs = h5 - (h6 - CATERPILLAR_NF / 35.8); return rs;//from w w w . j a va 2 s .com }
From source file:Main.java
public static double caterpillarFormula2() { double rs = 0; double h3 = Double.valueOf(DATA_MAP.get("h3")); double h4 = Double.valueOf(DATA_MAP.get("h4")); rs = h3 - (h4 - CATERPILLAR_VF / 43) + 0.100; return rs;// w w w .j a v a2 s. c o m }
From source file:Main.java
public static double caterpillarFormula4() { double rs = 0; double h7 = Double.valueOf(DATA_MAP.get("h7")); double h8 = Double.valueOf(DATA_MAP.get("h8")); rs = h7 - h8 + CATERPILLAR_NL;/*from w ww. jav a2 s.c o m*/ return rs; }
From source file:Main.java
public static double getArgDouble(final NodeList args, final String strName) { final String strValue = getArg(args, strName, null); return Double.valueOf(strValue); }
From source file:Main.java
public static void incrementEditText(EditText et) { String current = et.getText().toString(); if (current.length() == 0) { et.setText("1"); }// w w w. j a v a 2 s .co m double doubleValue = Double.valueOf(et.getText().toString()); int intValue = (int) doubleValue; if (doubleValue == intValue) { String incremented = String.valueOf(intValue + 1); et.setText(incremented); } else { String incremented = String.valueOf(doubleValue + 1d); et.setText(incremented); } et.clearFocus(); }
From source file:Main.java
public static Double div(Double v1, Double v2) { BigDecimal b1 = new BigDecimal(v1.toString()); BigDecimal b2 = new BigDecimal(v2.toString()); return Double.valueOf(b1.divide(b2, DEF_DIV_SCALE, BigDecimal.ROUND_HALF_UP).doubleValue()); }
From source file:Main.java
public static double crin1Formula3() { double rs = 0; double h6 = Double.valueOf(DATA_MAP.get("h6")); double h7 = Double.valueOf(DATA_MAP.get("h7")); double h8 = Double.valueOf(DATA_MAP.get("h8")); rs = h6 - h7 - (h8 - CRIN1_VF / 50) + CRIN1_AH; return rs;//from w w w .j a va2 s. co m }