diff --git a/static/js/checkFloat.js b/static/js/checkFloat.js deleted file mode 100644 index daa5a50f..00000000 --- a/static/js/checkFloat.js +++ /dev/null @@ -1,7 +0,0 @@ -function checkFloat(string) { - try { - return isNaN(parseFloat(string)) - } catch (error) { - return false - } -} \ No newline at end of file diff --git a/static/js/stringFloat.js b/static/js/floatUtils.js similarity index 70% rename from static/js/stringFloat.js rename to static/js/floatUtils.js index edbbe4da..fb81107a 100644 --- a/static/js/stringFloat.js +++ b/static/js/floatUtils.js @@ -15,4 +15,11 @@ class stringFloat{ return this.string } } +} +function checkFloat(string) { + try { + return isNaN(parseFloat(string)) + } catch (error) { + return false + } } \ No newline at end of file