From 36b453f1d6fbf091897e000bde4cc34d055b1037 Mon Sep 17 00:00:00 2001 From: Julien Bourdeau Date: Mon, 29 Sep 2014 11:40:09 +0200 Subject: [PATCH] // Rename tools.js variable --- js/tools.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/tools.js b/js/tools.js index 4e3d552805141..82fbc3323edc7 100644 --- a/js/tools.js +++ b/js/tools.js @@ -106,7 +106,7 @@ function ps_log10(value) } function ps_round_half_up(value, precision) -{ +{ var mul = Math.pow(10, precision); var val = value * mul; @@ -123,8 +123,8 @@ function ps_round(value, places) { if (typeof(roundMode) === 'undefined') roundMode = 2; - if (typeof(precision) === 'undefined') - precision = 2; + if (typeof(places) === 'undefined') + places = 2; var method = roundMode;