noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 51/219: task #0001463: Calculatrice - 4 déci


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 51/219: task #0001463: Calculatrice - 4 décimales
Date: Mon, 18 Dec 2017 13:22:37 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 4feba4e5ed229d9c1c1e43a3adb7b2372b3a31a6
Author: Dany De Bontridder <address@hidden>
Date:   Thu Sep 14 22:01:55 2017 +0200

    task #0001463: Calculatrice - 4 décimales
---
 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 37477c5..dd42d07 100644
--- a/html/js/calc.js
+++ b/html/js/calc.js
@@ -45,7 +45,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]