dcsimg
1)uses of random class 2)how to display numbers upto 2 decimal points
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   kranthi_kiran
Posted On:   Sunday, April 10, 2005 07:18 AM

1)uses of random class
2)how to display numbers upto 2 decimal points

Re: 1)uses of random class 2)how to display numbers upto 2 decimal points

Posted By:   Ravi_Kesariraman  
Posted On:   Sunday, April 10, 2005 10:04 PM

You can check on DecimalNumberFormat class for displaying numbers upto 2 decimal places.

new java.text.DecimalFormat("###0.00").format(i);




Note: I appreciate you spend a 'little' time on your own to find answers to such basic concepts before posting to the newsgroup.

About | Sitemap | Contact