Built-in Functions → round

round() is a scalar arithmetic function that evaluates an expression and returns the closest integer to its floating point argument.

Signature

round(double exp)
  • double exp: expression evaluating to double

Returns

long

Examples

  • Find the closest integer to 56.10145.
round(56.10145)

In this example, 56 is returned.


  • Find the closest integer to 0.6724.
round(0.6724)

In this example, 1 is returned.