code set to string 'max_digits' and params set to a dictionary with an entry: self.max_digits for 'max'. if self.decimal_places is not None and decimals is grater than self.decimal_places:
if self . decimal_places is not None and decimals > self . decimal_places :