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