What is the point of having isValid “float” if it’s the same as isNumeric? A coworker ran into this today, but how else, without using regex, could you easily validate the presence of decimals? Sigh. It doesn’t happen often, but it’s a pain that float just validates as an integer and not as what you would expect, a float.
Advertisement