It seems easy but I couldn't 
I have a UITextField with "Number and Punctuation" virtual keyboard.
I am using this field for entering price like 99 or 99.99
I am stuck on its validation. Somewhere around I found isnan() is that correct to use like
OR any other code snippet or something like that?
I have a UITextField with "Number and Punctuation" virtual keyboard.
I am using this field for entering price like 99 or 99.99
I am stuck on its validation. Somewhere around I found isnan() is that correct to use like
Code:
if (isnan([price.text floatValue]))
{
// Floating number
}
else
{
// Not a floating number
}