diff --git a/static/js/checkFloat.js b/static/js/checkFloat.js new file mode 100644 index 00000000..daa5a50f --- /dev/null +++ b/static/js/checkFloat.js @@ -0,0 +1,7 @@ +function checkFloat(string) { + try { + return isNaN(parseFloat(string)) + } catch (error) { + return false + } +} \ No newline at end of file