DEV Community

Discussion on: How to check if Number is Float in JS

Collapse
 
bahree669 profile image
SaepulBahri

in Javascript you can use this :

/[\.]/.test(String(120.5))

Enter fullscreen mode Exit fullscreen mode