How to format integer with leading and end zeros?

后端 未结 0 1858
盖世英雄少女心
盖世英雄少女心 2021-01-06 10:31

How can i format integer that should have a format of 0000, when the integer is 5 the formatted value should return 0500, when the integer is 10 it should return 1000 and so

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