diff --git a/type_def/size.py b/type_def/size.py index 92f4ffb..dd3a033 100644 --- a/type_def/size.py +++ b/type_def/size.py @@ -185,8 +185,7 @@ def __rmul__(self, other: float | int): @multimethod def __truediv__(self, other: float | int | Size): if isinstance(other, Size): - other = other.get_value() - return math.ceil(self.get_value() / other) + return self.get_value() / other.get_value() if other == 0: raise ValueError("Divisor must not be equal to 0.") return Size(math.ceil(self.get_value() / other))