[Erp5-report] r38870 jerome - /erp5/trunk/products/Formulator/Widget.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Oct 4 17:13:05 CEST 2010


Author: jerome
Date: Mon Oct  4 17:13:04 2010
New Revision: 38870

URL: http://svn.erp5.org?rev=38870&view=rev
Log:
better use str

Modified:
    erp5/trunk/products/Formulator/Widget.py

Modified: erp5/trunk/products/Formulator/Widget.py
URL: http://svn.erp5.org/erp5/trunk/products/Formulator/Widget.py?rev=38870&r1=38869&r2=38870&view=diff
==============================================================================
--- erp5/trunk/products/Formulator/Widget.py [utf8] (original)
+++ erp5/trunk/products/Formulator/Widget.py [utf8] Mon Oct  4 17:13:04 2010
@@ -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




More information about the Erp5-report mailing list