def _float(value: str) -> float:
    """Convert string to float value

    Whitespace, empty or zero value is set to NaN.

    Args:
        value: String value

    Returns:
        Float value
    """
    if value.isspace() or not value or float(value) == 0.0:
        return float("nan")
    else:
        return float(value)