round

返回与参数最接近的整数值,并将整数舍入为正无穷大。

类别

数学

函数语法

round(<parameters>)

参数

  • 小数
  • 整数

签名和返回类型

round(<decimal>)

round(<integer>)

返回整数。

示例

round(3.14)

返回3。

round(3.54)

返回4。

round(-3.14)

返回–3。

round(3)

返回3。

在此页面上

Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Summit Banner

A virtual event April 27-28.

Expand your skills and get inspired.

Register for free
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now
Adobe Maker Awards Banner

Time to shine!

Apply now for the 2021 Adobe Experience Maker Awards.

Apply now