开发者

VB.NET declaration

I have to declare n = 01. But whenever I t开发者_如何学Gory it's getting changed to 1.

What should I try?


If this is just for display purposes then I would use the .ToString("0#"), unless you really need to do calculations based on two significant figures.

For index As Integer = 1 To 100
  Console.WriteLine(index.ToString("0#"))
Next

Gives you 01 02 . . 100

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜