The isFloat() method determines whether the passed value is an float.
var isFloat = Mint.utils.isFloat(1.2);
true if the tested object is integer; otherwise, false.
Mint.utils.isFloat(0.1); // true Mint.utils.isFloat(-10.1); // true Mint.utils.isFloat(1); // true Mint.utils.isFloat(Math.PI); // true Mint.utils.isFloat(-100000); // true Mint.utils.isFloat(NaN); // false Mint.utils.isFloat(0); // true Mint.utils.isFloat("10"); // false
There was an error while loading. Please reload this page.
Home
Setup & Dependencies
Browsers support
Tests
Mint.utils functions
LICENSE