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)
| 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 |
no outgoing calls