(value, default=0.0)
Convert the value into a floating point number. If the
    conversion doesn't work it will return ``0.0``. You can
    override this default using the first parameter.
Convert the value into a floating point number. If the
    conversion doesn't work it will return ``0.0``. You can
    override this default using the first parameter.
Convert the value into a floating point number . If the conversion doesn t work it will return 0 . 0 . You can override this default using the first parameter .
def do_float(value, default=0.0):
    """Convert the value into a floating point number. If the
    conversion doesn't work it will return ``0.0``. You can
    override this default using the first parameter.
    """
    try:
        return float(value)
    except (TypeError, ValueError):
        return default
def do_float ( value , default = 0.0 ) : try : return float ( value ) except ( TypeError , ValueError ) : return default