I have this situation:
I should write in a text field a value in euro.
If inside this text field I write “10” I should store in a double value “10.00” or if I write “10,1” I should store in a double “10,10” or if I write “10,23” I should store “10,23”
How can I do it?
This should help:
double val = [[textField text] doubleValue];