diff --git a/static/js/stringFloat.js b/static/js/stringFloat.js new file mode 100644 index 00000000..edbbe4da --- /dev/null +++ b/static/js/stringFloat.js @@ -0,0 +1,18 @@ +class stringFloat{ + constructor(value) { + this.string=value + } + get Value(){ + return parseFloat(this.string) + } + valueOf() { + return this.Value; + } + toString(){ + if (isNaN(checkFloat(this.Value))) { + return this.Value + } else { + return this.string + } + } +} \ No newline at end of file