MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / parseDouble

Method parseDouble

ij/src/main/java/ij/util/Tools.java:199–206  ·  view source on GitHub ↗

Returns a double containg the value represented by the specified String . @param s the string to be parsed. @param defaultValue the value returned if s does not contain a parsable double @return The double value represented by the string argument or

(String s, double defaultValue)

Source from the content-addressed store, hash-verified

197 * <code>defaultValue</code> if the string does not contain a parsable double
198 */
199 public static double parseDouble(String s, double defaultValue) {
200 if (s==null)
201 return defaultValue;
202 try {
203 defaultValue = JavaDoubleParser.parseDouble(s);
204 } catch (NumberFormatException e) {}
205 return defaultValue;
206 }
207
208 /**
209 * Returns a double containg the value represented by the

Callers 15

getNumericPropertyMethod · 0.95
getNumericPropMethod · 0.95
cropMethod · 0.95
showStatusMethod · 0.95
handleLogCommandMethod · 0.95
getLocationMethod · 0.95
sortDicomMethod · 0.95
main0Method · 0.95
activateWindowMethod · 0.95
getBooleanExpressionMethod · 0.95
getFactorMethod · 0.95
getResultMethod · 0.95

Calls

no outgoing calls

Tested by 1

flexFormatTestMethod · 0.36