Foundation_Library

Foundation Library

Math

Rounding

We can round decimal values to round them according to our requirement.

var x = 5.3
x.round()
// x == 5.0

Apple Docs | double round