def to_float(value: str | None) -> float | None:
    """Safely convert string value to rounded float."""
    if value is None:
        return None

    try:
        return round(
            float(value),
            1,
        )
    except (ValueError, TypeError):
        return None