数値の桁数を取得したかったのでメモ。
int val = 100;
int valLen = String.valueOf( val ).length(); // 3が返される
Go to list of users who liked
More than 5 years have passed since last update.
数値の桁数を取得したかったのでメモ。
int val = 100;
int valLen = String.valueOf( val ).length(); // 3が返される
Register as a new user and use Qiita more conveniently
Go to list of users who liked