Construct a CLI double parameter from a {@link DoubleParamDef}.

@param def DoubleParamDef to construct a CLI double parameter from.
@return A CLI double parameter constructed from the DoubleParamDef.
192107
public static DoubleCliParam fromDef(DoubleParamDef def) {
        return new DoubleCliParam(def.getIdentifier(), def.getDefaultValueSupplier(), def.isNullable());
    }
386514
public static double getConfigDouble(String key, double defaultValue) {
		return NumberUtils.toDouble(getConfigParam(key, Double.toString(defaultValue)));
	}
1179488
public static double div(float v1, float v2, int scale, RoundingMode roundingMode) {
		return div(Float.toString(v1), Float.toString(v2), scale, roundingMode).doubleValue();
	}
331306
public static IntCliParam fromDef(IntParamDef def) {
        return new IntCliParam(def.getIdentifier(), def.getDefaultValueSupplier(), def.isNullable());
    }
548906
public double[] getDoubleArray(final String key, final double[] def) {
		try {
			final double[] result = getDoubleArray(key);
			return result != null ? result : def;
		} catch (final NumberFormatException nfe) {
			return def;
		}
	}
1204649
public static DoubleBinding IEEEremainder(final ObservableDoubleValue f1, final ObservableDoubleValue f2) {
        return createDoubleBinding(() -> Math.IEEEremainder(f1.get(), f2.get()), f1, f2);
    }
1129760
public static ParameterDef Double(final double d) {
        final BigDecimal bd = new BigDecimal(String.format(Locale.US, "%f", d)).
            stripTrailingZeros();

        return Scaled(Types.DOUBLE, bd.scale());
    }
90176
public static Double getDouble(Config config, String path) {
        try {
            Object obj = config.getAnyRef(path);
            return obj instanceof Number ? ((Number) obj).doubleValue() : null;
        } catch (ConfigException.Missing | ConfigException.WrongType e) {
            if (e instanceof ConfigException.WrongType) {
                LOGGER.warn(e.getMessage(), e);
            }
            return null;
        }
    }
177273
public Double getParameterDouble(String name, Double defaultValue)
   {
      String value = getParameterValue(name, null);

      if (value != null)
      {
         try
         {
            return StringNumberParser.parseDouble(value);
         }
         catch (NumberFormatException e)
         {
            if (LOG.isTraceEnabled())
            {
               LOG.trace("An exception occurred: " + e.getMessage());
            }
         }
      }
      return defaultValue;
   }
704050
public String getOrElse(int i, String def)
    {
        if (i >= 0 && i < values.size())
        {
            return values.get(i);
        }
        return def;
    }
23597
public static Double getAsDouble(Object value) {
		Double result = null;

		try {
			if (value instanceof String) {
				result = Double.valueOf((String) value);
			} else if (value instanceof Number) {
				result = ((Number) value).doubleValue();
			} else {
				result = null;
			}
		} catch (Exception e) {
			result = null;
		}

		return result == null ? 0 : result;
	}
73473
public String getStringProperty (final String name, final String def)
  {
    String val = m_aProps.getProperty (name, def);
    if (val == null)
      return def;
    val = val.trim ();
    return val.length () == 0 ? def : val;
  }
245726
public static double getDouble(
    Object      value)
  {
    if (value == null)
    {
        return 0;
    }

    return Double.valueOf(value.toString()).doubleValue();

  }
443470
public static ScalarOperation<Double> doubleMultiplicationOp() {
		return new ScalarOperation<Double>(new ScalarFunction<Double>() {

			@Override
			public Double scale(Double a, double b) {
				return a * b;
			}

		}, 1d);
	}
1333621
@Override
    public Double getDouble(final String key) {
        return retrieve(new Callable<Double>() {
            @Override
            public Double call() throws Exception {
                return configuration.getDouble(key);
            }
        }, null);
    }
904772
public static double[] doublesFrom(InputStream is) {
        ArrayList<Double> doubles = new ArrayList<Double>();
        for (String line : new LineReader(is)) {
            if (line.length() > 0 && !line.startsWith("#"))
                doubles.add(Double.parseDouble(line));
        }
        // copy it, because we can't cast from Double to double...
        double[] ret = new double[doubles.size()];
        for (int i = 0; i < doubles.size(); i++) {
            ret[i] = doubles.get(i);
        }
        return ret;
    }
695261
public static Double getPropertyDouble(String key, Double aDefault)
	{
		return getSettings().getPropertyDouble(key, aDefault);
	}