noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 11/19: Bug #1783 : les nombres commençant pa


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 11/19: Bug #1783 : les nombres commençant par zéro ne sont pas supportés
Date: Thu, 12 Dec 2019 15:49:05 -0500 (EST)

sparkyx pushed a commit to tag rel7200
in repository noalyss.

commit 0f504f635746e8bcaf59ea0606b958665b19953c
Author: Dany De Bontridder <address@hidden>
Date:   Sat Dec 7 11:19:35 2019 +0100

    Bug #1783 : les nombres commençant par zéro ne sont pas supportés
    
        https://bug.noalyss.eu/view.php?id=1783
---
 html/js/scripts.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/html/js/scripts.js b/html/js/scripts.js
index e1700a9..734d055 100644
--- a/html/js/scripts.js
+++ b/html/js/scripts.js
@@ -267,7 +267,7 @@ function compute_number(value)
             retval = eval(value);
         } catch (e)
         {
-            return 0;
+           return parseFloat(value);
         }
         /*pour gérer les divisions par 0*/
         if (retval == Infinity)



reply via email to

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