public float getFloat ( String path ) { final Object value = get ( path ) ; //Groovy will always return a Double for floating point values. if ( value instanceof Double ) { return ( ( Double ) value ) . floatValue ( ) ; } else { return ObjectConverter . convertObjectTo ( value , Float . class ) ; } }
Get the result of an Object path expression as a float .