def _force_float(v):
try:<EOL><INDENT>return float(v)<EOL><DEDENT>except Exception as exc:<EOL><INDENT>return float('<STR_LIT>')<EOL>logger.warning('<STR_LIT>'.format(v, exc))<EOL><DEDENT>
Converts given argument to float. On fail logs warning and returns 0.0.

    Args:
        v (any): value to convert to float

    Returns:
        float: converted v or 0.0 if conversion failed.