How to find that a number is float or integer?
float
integer
1.25 --> float 1 --> integer 0 --> integer 0.25 --> float <
1.25 --> float 1 --> integer 0 --> integer 0.25 --> float
var isInt = function (n) { return n === (n | 0); };
Haven't had a case where this didn't do the job.