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.
2001-8-18 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

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

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论