How to format an integer with zero padding in Julia?

后端 未结 0 1386
感情败类
感情败类 2021-01-15 22:14

If I have an Integer, say 123, how can I get a zero-padded string of it to a certain length?

For example, 123 with 6 wide would become "000123", but 1234567

相关标签:
回答
  • 消灭零回复
提交回复
热议问题