apply suggested changes
This commit is contained in:
2
kmk/utils.py
Normal file
2
kmk/utils.py
Normal file
@@ -0,0 +1,2 @@
|
||||
def clamp(x, bottom=0, top=100):
|
||||
return min(max(bottom, x), top)
|
Reference in New Issue
Block a user