Number.isFloat
isFloat() -> boolean
Description
Return true
if the number is a floating point number (fraction).
$num = 123.4 $num.isFloat() //= true $num = 123 $num.isFloat() //= false
Return true
if the number is a floating point number (fraction).
$num = 123.4 $num.isFloat() //= true $num = 123 $num.isFloat() //= false