def round_to_int(number, precision):
 precision = int(precision)
 rounded = (((int(number) + (precision / 2)) // precision) * precision)
 return rounded

def round_to_int ( number , precision ) : precision = int ( precision ) rounded = ( ( ( int ( number ) + ( precision / 2 ) ) // precision ) * precision ) return rounded
round a number to a precision .