10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-07-03 18:06:06 +02:00

Combine checkFloat and StringFloat files to floatUtils.js

This commit is contained in:
Mickaël Véril 2020-02-01 17:13:33 +01:00
parent 74509f97ee
commit b46acd130b
2 changed files with 7 additions and 7 deletions

View File

@ -1,7 +0,0 @@
function checkFloat(string) {
try {
return isNaN(parseFloat(string))
} catch (error) {
return false
}
}

View File

@ -16,3 +16,10 @@ class stringFloat{
} }
} }
} }
function checkFloat(string) {
try {
return isNaN(parseFloat(string))
} catch (error) {
return false
}
}