round(x: f64) → f64

Category: [math](builtinsmath)_

Round to the nearest integer (ties away from zero).

ParameterTypeDescriptionRemarks
xf64The input value.
returnsf64The result.
wcl
round(2.5)   // nearest integer (ties away from zero) → 3.0