noalyss-commit
[Top][All Lists]
Advanced

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

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


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 11/18: Calc : set 4 decimals
Date: Sun, 22 Apr 2018 09:30:30 -0400 (EDT)

sparkyx pushed a commit to annotated tag rel6919-syn-180310
in repository noalyss.

commit 606212ca44edfb575cd74e7deff3bcba328dcf40
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]