def METHOD_NAME(value: str, rounding_val: int) -> float:
    """Convert string to float."""
    try:
        return round(float(value), rounding_val)
    except ValueError:
        raise ParseError(
            error_message="Unexpected argument to parse_number", parse_source=value
        )