def _float(item, default=0.0):
    """_float

    Args:
        item (Any): item
        default (float, optional): default

    Returns:
        float: item in float type
    """
    if isinstance(item, float):
        return item

    if item == 'null':
        return 0.0

    if item == 'false':
        return 0.0

    if item == 'true':
        return 1.0

    result = default
    try:
        result = float(item)
    except Exception as e:
        # cfg.logger.error('unable to _float: item: %s, default: %s e: %s', item, default, e)
        result = default

    return result