Human: Can you show me a Python function to round a float to an integer. Assistant: 
Here is a Python function to round a float to an integer

import math

def round_to_int(number):
    """
    Round a float to an int.
    """
    return int(round(number))

# Enter the number
number = 1.5

# Calling the function
print((round_to_int(number)))

#Example Output
# 2

#Remember to inspect code for bugs.