MCPcopy Index your code
hub / github.com/apache/groovy / toDouble

Method toDouble

src/main/java/groovy/util/Node.java:857–862  ·  view source on GitHub ↗

Converts the text of this GPathResult to a Double object. @return the GPathResult, converted to a Double

()

Source from the content-addressed store, hash-verified

855 * @return the GPathResult, converted to a <code>Double</code>
856 */
857 public Double toDouble() {
858 if(textIsEmptyOrNull()){
859 return null;
860 }
861 return StringGroovyMethods.toDouble((CharSequence)text());
862 }
863
864 /**
865 * Converts the text of this GPathResult to a BigDecimal object.

Callers

nothing calls this directly

Calls 3

textIsEmptyOrNullMethod · 0.95
toDoubleMethod · 0.95
textMethod · 0.95

Tested by

no test coverage detected