The value to validate.
true if the value is a finite non-integer number.
This function returns true only for finite numeric values that
contain a fractional component.
JavaScript does not distinguish integer and floating-point types at
runtime. This function treats any number without a fractional part as
an integer, even if written with decimal notation (e.g. 1.0).
isFloat(3.14); // true
isFloat(-0.5); // true
isFloat(42); // false
isFloat(1.0); // false (not a bug)
isFloat(NaN); // false
Determines whether the provided value is a finite non-integer number.