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

Method toFloat

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

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

()

Source from the content-addressed store, hash-verified

843 * @return the GPathResult, converted to a <code>Float</code>
844 */
845 public Float toFloat() {
846 if(textIsEmptyOrNull()){
847 return null;
848 }
849 return StringGroovyMethods.toFloat((CharSequence)text());
850 }
851
852 /**
853 * Converts the text of this GPathResult to a Double object.

Callers

nothing calls this directly

Calls 3

textIsEmptyOrNullMethod · 0.95
toFloatMethod · 0.95
textMethod · 0.95

Tested by

no test coverage detected