Look at java.text.* package and you will get the solution.

jabber (jabber)
I cannot remember the details. Try NumberFormat ... maybe my response is too late.
(#171781@0)
2001-8-18 -05:00

回到话题: 请问: Java 里的 Double 类型如何format 成小数点后两位?? 即 36.13323244423 -> 36.13 . 谢谢!

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=171781