作者chaioo (魔蠍小刀)
看板C_Sharp
标题[问题] 十六进位问题
时间Mon May 6 12:47:41 2013
请问一下
C#如何把整数10转换成字串0a
目前google到的都只能10->a;
还是要靠自己写了?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.114.15.128
1F:推 xres:int a = 10; Convert.ToString(a, 16).PadLeft(2, '0') 05/06 13:03
3F:→ iterator:intValue.ToString("X2") 05/06 13:09