16.05.2013, 09:59
What? Why would it be necessary to convert it to string first and then convert it back? This solves all your problems:
Edit: To get the left part you would subtract the LastDigit from the orginal number and then divide by 10. Ex:
pawn Код:
new LastDigit = number % 10;
pawn Код:
1222 % 10 = 2
(1222 - 2) / 10 = 1220 / 10 = 122