feat: add clamp_to_byte at the end of calculator

This commit is contained in:
typosaurus 2026-07-25 19:01:02 +02:00
parent f5363514bf
commit 65ce7f1994

View File

@ -6,3 +6,7 @@ def add(left: int, right: int) -> int:
def subtract(left: int, right: int) -> int:
return left - right
def clamp_to_byte(value: int) -> int:
return max(0, min(255, value))