Solved

How to change decimal number 8 to 8.00

Posted on 2009-07-06
2
362 Views
Last Modified: 2012-05-07
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
0
Comment
Question by:nandithaa
2 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 50 total points
ID: 24783239
           decimal x = 3;
            string strOut = x.ToString("0.00");
0
 
LVL 6

Author Comment

by:nandithaa
ID: 24783355
Thanks..... Itz working
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now