I want to enter 256, 256.7 or 1889 etc... and after pressing "OK" want to this number equal to my integer value in arduino
256.7 is NOT an integer value.
If you collect the characters in an array, and keep the array NULL terminated, you can use atoi() or atof() to convert the string to an int or a float.