How do I just check if a variable is a floating point number.
If its not a floating point number I want to throw an error.
What I have been trying is like this.. I am guessing there is a better way. plus this doesnt work anyway with letters and stuff...
if (($updatedMileage >= 0) && ($updatedMileage <= 9999)) {
IS A FLOATING POINT NUMBER
}
else {
ISNT A FLOATING POINT NUMBER
}