我试图在Java中使用printf截断到第三个小数点,但我一直只到第二个小数点.这是我试图这样做的代码行:
System.out.printf("The speed in ft/sec is %6.2f\n", time);
java format
format ×1
java ×1