noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 06/06: Calc : set 4 decimals


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 06/06: Calc : set 4 decimals
Date: Wed, 20 Dec 2017 04:42:48 -0500 (EST)

sparkyx pushed a commit to annotated tag rel6919.7
in repository noalyss.

commit 5c595c6ac952424d82dc51b173e17244b05c9fed
Author: Dany De Bontridder <address@hidden>
Date:   Thu Dec 14 22:05:59 2017 +0100

    Calc : set 4 decimals
---
 html/js/calc.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/html/js/calc.js b/html/js/calc.js
index 4789efc..5460a7b 100644
--- a/html/js/calc.js
+++ b/html/js/calc.js
@@ -51,7 +51,7 @@ function cal()
 
         sub=eval(p_variable);
         var result=parseFloat(sub);
-        result=Math.round(result*100)/100;
+        result=Math.round(result*10000)/10000;
     }
     catch(exception)
     {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]