diff --git a/src/domain/value.py b/src/domain/value.py index e804a41a..d6464448 100644 --- a/src/domain/value.py +++ b/src/domain/value.py @@ -43,7 +43,7 @@ def set_min_exponent(self, min_exponent: int): # Check if the value is too small to be rounded to the specified number of decimal # places: rounded = Helpers.round_to_n_decimal_places(self._value, -min_exponent) - if float(rounded) == 0 and self._value != 0: + if Decimal(rounded) == 0 and self._value != 0: raise DecimalPlacesError() def get_min_exponent(self) -> int: