I have the following code for checking whether a number passed to the function is float or not.
function isFloat(n){ return (n % 1 === 0) ? false : true ; } isFloat(4.000000000000000002);
I am passing value 4.000000000000000002 the function is returning 0. Can you help me figure out what is missing ?