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