A read some posts here and google and don´t find a substancial answer. Supose I have a largest number and I have to assing to a variable. The problem raise when I have a GUI where the user will enter the number. How I can´t know what the value the user will put in a field (let´s think in a UItextField), when I get the number and then assign this to a variable, if the number is more large them max with the type of var I will have the overflow and a inconsistent number. Other situation is whem I have to some values and I have to sum all. If the total sum is more large of the type the variable I will get the overflow again.
How can a compare the value inputed by user whith the max of the type of variable? I know have a constats for the mim and max, but if someone have a example code will help.