round

Returns the closest integer value to the argument with ties rounding to positive infinity.

Category

Maths

Function syntax

round(<parameters>)

Parameters

  • decimal
  • integer

Signatures and returned type

round(<decimal>)

round(<integer>)

Return an integer.

Example

round(3.14)

Returns 3.

round(3.54)

Returns 4.

round(-3.14)

Returns -3.

round(3)

Returns 3.

On this page

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