Solved

How to change decimal number 8 to 8.00

Posted on 2009-07-06
2
369 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

713 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