How can i get the last digit of an integer (or NSInteger) outputted to integer?
example:
int time = CFAbsoluteGetCurrent();
int lastDigit;
Use modulo:
int lastDigit = time % 10;
来源:https://stackoverflow.com/questions/4559654/c-objective-c-read-and-get-last-digit-of-integer