C2 methods of adding 0 before the number according to the specified length

From , 3 Years ago, written in C#, viewed 189 times.
URL https://pastebin.vip/view/6f4b7fd3
  1. String snum = "123";
  2. //方法1
  3. String pnum = snum.PadLeft(6, '0');
  4. //方法2
  5. String fnum = String.Format("{0:000000}"int.Parse(snum));
  6.  
  7.  

Reply to "C2 methods of adding 0 before the number according to the specified length"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website