By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,241 Members | 760 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,241 IT Pros & Developers. It's quick & easy.

convert number to fix decimal places

P: 53
hi!!

i want to place two fix decimal places after a digit even if there is no decimal places after a digit. for example if there is a number 5, i want output 5.00 like that.
please help me.

thanks in advance
Dec 7 '07 #1
Share this Question
Share on Google+
1 Reply


Expert 10K+
P: 11,448
hi!!

i want to place two fix decimal places after a digit even if there is no decimal places after a digit. for example if there is a number 5, i want output 5.00 like that.
please help me.

thanks in advance
Read the API documentation of the DecimalFormat class.

kind regards,

Jos
Dec 7 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.