Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to change decimal number 8 to 8.00

Posted on 2009-07-06
2
Medium Priority
?
376 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 200 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
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!
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

926 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