Javascript Number isFloat()
isFloat()
Number.prototype.isFloat = function(){ return typeof (+this) === 'number' && this%1!==0 };