python rounding up to closest integer code example Example: round to the nearest integer python int(round(x))