1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Bubble 1を0001みたいにnumberの桁数を揃えたtextにするやり方 ゼロパディング

Last updated at Posted at 2024-05-22

1を0001とかにすることを ”zero padding” ”ゼロパディング”という

やり方

  1. numberを”formatted as”するとstrになる
    .

  2. "find & replace"で先頭に0000を追加。表示したい桁数-1以上
    .

  3. "trancated from end to" で表示したい桁を設定

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?