Wednesday, December 10, 2008

How to add unlimited zero's after decimal in c#.net

1 comment
here is the code:

int yournumber = 12;
Console.WriteLine(yournumber.ToString("0.00##################"));
Console.WriteLine(yournumber.ToString("0.000#################"));
Console.WriteLine(yournumber.ToString("0.0000################"));

1 comments:

RRave said...

Dear Sir,

I have a launched new web site for .NET programming resources. www.codegain.com. I would like to invite to the codegain.com as author and supporter. I hope you will joins with us soon.

Thank You
RRaveen
Founder www.codegain.com