Version: v0.8.0 - Beta.  We welcome contributors & feedback.

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

See Also