Commit b39af268 authored by Jérome Perrin's avatar Jérome Perrin

Bug fix, do formating even if float.__str__ uses scientific notation (was

returning unformatted value).



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13696 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 931ad2a2
......@@ -1001,7 +1001,7 @@ class FloatWidget(TextWidget):
else:
if 'e' in value:
# %f will not use exponential format
return '%f' % float(original_value)
value = '%f' % float(original_value)
value_list = value.split('.')
integer = value_list[0]
if input_style.find(' ')>=0:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment