首页 › 答案 › 题库 › 慕课 › 未分类

要将数字x保留小数点后3位数的语句是哪个选项?

要将数字x保留小数点后3位数的语句是哪个选项?
A.format(x,"5.3f")
B.format("5.3f",x)
C.format(x,"5.4s")
D.format("5.3d",x)
正确答案:format(x,"5.3f")