Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
整数に出力された整数 (または NSInteger) の最後の桁を取得するにはどうすればよいですか?
例:
int time = CFAbsoluteGetCurrent(); int lastDigit;
モジュロを使用:
int lastDigit = time % 10;