def intClamp(v, low, high):
  return max(int(low), min(int(v), int(high)))
Clamps a value to the integer range [low, high] (inclusive).
dataset/ETHPy150Open GoogleCloudPlatform/appengine-search-python-java/product_search_python/utils.py/intClamp