MCPcopy Create free account
hub / github.com/ReadyTalk/avian / parseDouble

Method parseDouble

classpath/java/lang/Double.java:92–100  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

90 }
91
92 public static double parseDouble(String s) {
93 int[] numRead = new int[1];
94 double d = doubleFromString(s, numRead);
95 if (numRead[0] == 1) {
96 return d;
97 } else {
98 throw new NumberFormatException(s);
99 }
100 }
101
102 public static long doubleToLongBits(double value) {
103 if (isNaN(value)) return 0x7ff8000000000000L;

Callers 2

readDoubleTokenMethod · 0.95
DoubleMethod · 0.95

Calls 1

doubleFromStringMethod · 0.95

Tested by

no test coverage detected