From 0d6ee8c3a89397f034644f82fd8c1d5de04e649e Mon Sep 17 00:00:00 2001 From: Divlo Date: Sun, 6 Oct 2019 21:23:07 +0200 Subject: [PATCH] parseInt par Number plus strcit pour convertArabic --- scripts/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/main.js b/scripts/main.js index 7a1192b..964e395 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -233,7 +233,7 @@ $(function () { } } else if (convertNumberType === "Nombre Arabe") { - if (!isNaN(parseInt(numbersValue))) { + if (!isNaN(Number(numbersValue))) { $('.results').html(`${numbersValue} est déjà en chiffres arabes.`); } else { numbersValue = numbersValue.toUpperCase();