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

better use str


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38870 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e4f6640b
......@@ -1652,8 +1652,7 @@ class FloatWidget(TextWidget):
# if we have a precision, then use it now
value = ('%%0.%sf' % precision) % float_value
else:
# if no precision, we use repr which have a better precision than str
value = repr(float_value)
value = str(float_value)
except ValueError:
return value
# if this number displayed in scientific notification, just return it as
......
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