round int correct python code example
Example 1: round to the nearest integer python
int(round(x))
Example 2: how to round a number up in python
>>> import math
>>> math.ceil(3.2) # round up
4
int(round(x))
>>> import math
>>> math.ceil(3.2) # round up
4