[Erp5-report] r12287 - /erp5/trunk/products/ERP5Form/FormulatorPatch.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jan 24 13:35:49 CET 2007


Author: seb
Date: Wed Jan 24 13:35:47 2007
New Revision: 12287

URL: http://svn.erp5.org?rev=12287&view=rev
Log:
with numbers biggers than 1e+11, the float fields displayed a scientific notation and it was really annoying, now it will display the full number even if there are very big

Modified:
    erp5/trunk/products/ERP5Form/FormulatorPatch.py

Modified: erp5/trunk/products/ERP5Form/FormulatorPatch.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/FormulatorPatch.py?rev=12287&r1=12286&r2=12287&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/FormulatorPatch.py (original)
+++ erp5/trunk/products/ERP5Form/FormulatorPatch.py Wed Jan 24 13:35:47 2007
@@ -1010,7 +1010,7 @@
             percent=1
             value = float(value) * 100
           try :
-            value = str(float(value))
+            value = '%f' % (float(value))
           except ValueError:
             return value
           else:




More information about the Erp5-report mailing list