Possible Duplicate:
How to check if a number is float or integer?
I have been using a JavaScript function isNaN(value)
for identifying whether a number is an integer or a float. But now I am facing another problem that isNaN() is not filtering float. It is accepting it as integer.
Also it must treat 1.0 as an integer
Can someone guide me to find out a way in which I can filter integer values as well?