mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 05:43:46 +01:00
Combine checkFloat and StringFloat files to floatUtils.js
This commit is contained in:
parent
74509f97ee
commit
b46acd130b
@ -1,7 +0,0 @@
|
||||
function checkFloat(string) {
|
||||
try {
|
||||
return isNaN(parseFloat(string))
|
||||
} catch (error) {
|
||||
return false
|
||||
}
|
||||
}
|
@ -16,3 +16,10 @@ class stringFloat{
|
||||
}
|
||||
}
|
||||
}
|
||||
function checkFloat(string) {
|
||||
try {
|
||||
return isNaN(parseFloat(string))
|
||||
} catch (error) {
|
||||
return false
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user