static function Parse($string) {
        $result = null;
        if (!self::TryParse($string, $result)) {
            throw new \InvalidArgumentException("'$string' could not be converted to a number");
        }
        return $result;
    }
static function Parse($string) {
        $result = null;
        if (!self::TryParse($string, $result)) {
            throw new \InvalidArgumentException("'$string' could not be converted to a number");
        }
        return $result;
    }
static function Parse ( $ string ) { $ result = null ; if ( ! self :: TryParse ( $ string , $ result ) ) { throw new \ InvalidArgumentException ( "'$string' could not be converted to a number" ) ; } return $ result ; }
Parses a string to a number
@param string $string
@return float Returns the parsed number
@throws \InvalidArgumentException Raises an exception if parsing failed
Parses a string to a number