summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/lib/dhtmlxGraph/codebase/dhtmlxchart.js
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2011-10-21 14:07:41 +0200
committerXavier Morel <xmo@openerp.com>2011-10-21 14:07:41 +0200
commit01897c8aa6b946492eeaba1595e7e925837527b7 (patch)
tree086c0fe0beb8d593a6261dd5ab868324e1abe8dc /addons/web_graph/static/lib/dhtmlxGraph/codebase/dhtmlxchart.js
parent4da3e5d354f9fa84ef30d371fe60e7fa301b001f (diff)
[FIX] completely broken float formatting when leading 0
Formatting converted the decimal part into an integer, dropping all leading 0s and failing to reinsert them. The conversion also lead to compounded errors, casting 0.1100 into 0.10999 (something like that). Replace this by a straight float formatting via _.sprintf and the slicing of the decimal part from the resulting string (Math.abs and %1 clamp the value to format to the [0, 1[ range, ensuring we just need to slice off the first two characters). Also add some tests. lp bug: https://launchpad.net/bugs/879355 fixed bzr revid: xmo@openerp.com-20111021120741-813im5bzup7vho1f
Diffstat (limited to 'addons/web_graph/static/lib/dhtmlxGraph/codebase/dhtmlxchart.js')
0 files changed, 0 insertions, 0 deletions