round function

int round(
  1. num x
)

Rounds the given value x towards the closest integer with ties rounded towards even integer.

Implementation

int round(num x) => x.round();