def round_to_scale(number, precision):
 if (precision < 1):
  return round_to_float(number, precision)
 return round_to_int(number, precision)

def round_to_scale ( number , precision ) : if ( precision < 1 ) : return round_to_float ( number , precision ) return round_to_int ( number , precision )
round a number or a float to a precision .