Converts the text of this GPathResult to a Float object. @return the GPathResult, converted to a Float
()
| 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. |
nothing calls this directly
no test coverage detected