math.clamp Clamp an integer to an inclusive range, refusing a range whose bounds are the wrong way round. clamp in Python mathclampboundlimit 1.0.0py rs ts12 tests