Float and Double Formatting. To format a float number, we'll need the f format: System.out.printf("%f%n", 5.1473);. which will output:
確定! 回上一頁