How to change decimal number 8 to 8.00

I am getting a decimal value 8 as output. I want to display it as 8.00.
How to change the decimal number 8 to 8.00?
Thanks in advance
LVL 6
nandithaaAsked:
Who is Participating?
 
DhaestConnect With a Mentor Commented:
           decimal x = 3;
            string strOut = x.ToString("0.00");
0
 
nandithaaAuthor Commented:
Thanks..... Itz working
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.