經安全檢測,此網站為安全網站,請放心前往原始網址!

round up to 2 decimal places in java? - Stack Overflow

2012年7月28日 - double roundOff = Math.round(a * 100.0) / 100.0;. Output is 123.14. Or as @ Rufein said

stackoverflow.com

網址安全性掃描由 google 提供