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
Who is Participating?
DhaestConnect With a Mentor Commented:
           decimal x = 3;
            string strOut = x.ToString("0.00");
nandithaaAuthor Commented:
Thanks..... Itz working
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.