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

Method parseDouble

ij/src/main/java/ij/macro/Functions.java:3792–3797  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

3790 }
3791
3792 double parseDouble(String s) {
3793 if (s==null) return 0.0;
3794 s = s.trim();
3795 if (s.indexOf(' ')!=-1) s = s.substring(0, s.indexOf(' '));
3796 return Tools.parseDouble(s);
3797 }
3798
3799 double parseInt() {
3800 String s = getFirstString();

Callers 3

getFunctionValueMethod · 0.95
parseIntMethod · 0.95
tryScientificNotationMethod · 0.45

Calls 4

parseDoubleMethod · 0.95
substringMethod · 0.80
trimMethod · 0.45
indexOfMethod · 0.45

Tested by

no test coverage detected