以下哪个方法的调用结果是整数类型结果3
已帮助 人
以下哪个方法的调用结果是整数类型结果3
A.Math.ceil(3.1)
B.Math.floor(2.7)
C.Math.abs(3.1)
D.Math.round(2.7)

回答
共1条回复-
Math.round(2.7)
以下哪个方法的调用结果是整数类型结果3
A.Math.ceil(3.1)
B.Math.floor(2.7)
C.Math.abs(3.1)
D.Math.round(2.7)

Math.round(2.7)