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:
parent
74509f97ee
commit
b46acd130b
|
@ -1,7 +0,0 @@
|
|||
function checkFloat(string) {
|
||||
try {
|
||||
return isNaN(parseFloat(string))
|
||||
} catch (error) {
|
||||
return false
|
||||
}
|
||||
}
|
|
@ -15,4 +15,11 @@ class stringFloat{
|
|||
return this.string
|
||||
}
|
||||
}
|
||||
}
|
||||
function checkFloat(string) {
|
||||
try {
|
||||
return isNaN(parseFloat(string))
|
||||
} catch (error) {
|
||||
return false
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user