From 0f504f635746e8bcaf59ea0606b958665b19953c Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sat, 7 Dec 2019 11:19:35 +0100 Subject: [PATCH] =?UTF-8?q?Bug=20#1783=20:=20les=20nombres=20commen=C3=A7a?= =?UTF-8?q?nt=20par=20z=C3=A9ro=20ne=20sont=20pas=20support=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 e1700a9fd..734d0554a 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)