def _float(value):
    """Attempts to return value as a float. No different from Python's 
    built-in float(), except that it accepts None and "" (for which it 
    returns 0.0).
    """
    return float(value) if value else 0.0