From a939d0b43d88fa6cba87759b240dda4900ee4c4a Mon Sep 17 00:00:00 2001 From: tovade Date: Mon, 25 Apr 2022 20:08:08 +0200 Subject: [PATCH] fix number function --- functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.js b/functions.js index 1195365..eb95a2e 100644 --- a/functions.js +++ b/functions.js @@ -19,7 +19,7 @@ module.exports = { case "string": if (number.length === 0) return null; - number = parseFloat(number); + number = Number(number) if (isNaN(number)) return undefined; return Math.round(number);