简短回答:Java等价物是"%11.2f".
在C printf()(但不是scanf()),%f和%lf are equivalent; Both take a double argument.
Formatter.format()%f, %lf is legal but %f is not. Float works for "%11.2f", Double and BigDecimal 值.
| 归档时间: |
|
| 查看次数: |
2481 次 |
| 最近记录: |