Skip to content

round

Category: Math

Returns the input rounded to the specified number of decimal places

  • Return type: number
  • Parameters:
    • precision integer — Number of decimal places (optional, defaults to 0)
3.14159.round(2)
3.6.round()
(-2.5).round()