Displaying double numbers on a browser
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Vijay_Kumar
Posted On:   Thursday, November 8, 2001 03:55 AM

How do I format the output such that always 2 decimal places are displayed when the value is retrieved from a resultset.

For example i want to display 100 as 100.00 and 101.5 as 101.50.

Help me out..
thanks
vijay

Re: Displaying double numbers on a browser

Posted By:   Naveed_Azhar  
Posted On:   Thursday, November 8, 2001 04:17 AM

Use the DecimalFormat class.


naveed@hotmail.com
About | Sitemap | Contact