how to print a float as an int if it is round python code example Example: round to the nearest integer python int(round(x))