MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / valueOf

Method valueOf

vm/JavaAPI/src/java/lang/Double.java:297–299  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 15

getPropertyValueMethod · 0.95
decodeValueMethod · 0.95
updateEnemiesMethod · 0.95
setIntMethod · 0.95
setDoubleMethod · 0.95
getMethod · 0.95
runMethod · 0.95
numericTokenMethod · 0.95
setMethod · 0.95
createMethod · 0.95
keyReleasedMethod · 0.95
setValueMethod · 0.95

Calls 1

parseDoubleMethod · 0.95

Tested by 4

runTestMethod · 0.76
elementPropertyTypingMethod · 0.76