A common task in Java is to format double to 2 decimal places (to format currency). ... String s = String.format( "%.2f" , number);.
確定! 回上一頁