def decode_float(value):
    """Decode a float after checking to make sure it is not already a float, 0, or empty."""
    if type(value) is float:
        return value
    elif value == 0:
        return 0.0
    elif not value:
        return None
    return float(value)