mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-11-04 21:24:00 +01:00
Add function to check if string can be converted float in JavaScript
This commit is contained in:
parent
89356b1b51
commit
ea6c37d4f9
7
static/js/checkFloat.js
Normal file
7
static/js/checkFloat.js
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
function checkFloat(string) {
|
||||||
|
try {
|
||||||
|
return isNaN(parseFloat(string))
|
||||||
|
} catch (error) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user