如何获取输出为整数的整数(或NSInteger)的最后一位数字?
示例:
int time = CFAbsoluteGetCurrent(); int lastDigit;
使用 取模运算:
int lastDigit = time % 10;