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