Hi, In my program I have a double variable, which displays result as "1.436555578". I want to restrict the display to two decimal places like "1.43". How to do so ? Please illustrate with small code.
"As long as there are tests, there will be prayer in public <br />schools."
Tom Keith
Greenhorn
Joined: Mar 26, 2002
Posts: 24
posted
0
Hi Rohit, Take a look at the following Method. The method takes a given prices and formats it.
Hope this helps. Thanks, Tom (edited by Cindy to format code) [ June 13, 2002: Message edited by: Cindy Glass ]