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?

[Webinar] Streamline your web hosting managementRegister Today

x
 
DhaestConnect With a Mentor Commented:
           decimal x = 3;
            string strOut = x.ToString("0.00");
0
 
nandithaaAuthor Commented:
Thanks..... Itz working
0
All Courses

From novice to tech pro — start learning today.