Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
fix number function
Browse files Browse the repository at this point in the history
  • Loading branch information
tovade committed Apr 25, 2022
1 parent 83286f2 commit a939d0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a939d0b

Please sign in to comment.