Returns a new Double object initialized to the value represented by the specified string. The string s is interpreted as the representation of a floating-point value and a Double object representing that value is created and returned. If s is null, then a NullPointerException is thrown. Leading and
(java.lang.String s)
| 295 | * , then a NumberFormatException is thrown. Otherwise, it is regarded as representing an exact decimal value in the usual "computerized scientific notation"; this exact decimal value is then conceptually converted to an "infinitely precise" binary value that is then rounded to type double by the usual round-to-nearest rule of IEEE 754 floating-point arithmetic. Finally, a new object of class Double is created to represent the double value. |
| 296 | */ |
| 297 | public static java.lang.Double valueOf(java.lang.String s) throws java.lang.NumberFormatException{ |
| 298 | return new Double(parseDouble(s)); |
| 299 | } |
| 300 | |
| 301 | /** |
| 302 | * Returns the object instance of i |