I want to round integers to the nearest 0.25 decimal value, like this:
import math
def x_round(x):
print math.round(x*4)/4
x_round(11.20) ## == 11.25
x_round(11.12) ## == 11.00
x_round(11.37) ## == 11.50
This gives me the following error in Python:
Invalid syntax