| f | from functools import wraps | f | from functools import wraps | 
            |  |  |  |  | 
            |  | class Fix: |  | class Fix: | 
            |  |  |  |  | 
            |  | def __init__(self, n): |  | def __init__(self, n): | 
            |  | self.n = n |  | self.n = n | 
            |  |  |  |  | 
            |  | def __call__(self, func): |  | def __call__(self, func): | 
            |  |  |  |  | 
            |  | @wraps(func) |  | @wraps(func) | 
            |  | def wrapper(*args, **kwargs): |  | def wrapper(*args, **kwargs): | 
            | t | rounded_args = tuple((round(a, self.n) if isinstance(a, floa | t | args = tuple((round(a, self.n) if isinstance(a, float) else | 
            |  | t) else a for a in args)) |  | a for a in args)) | 
            |  | rounded_kwargs = {k: round(v, self.n) if isinstance(v, float |  | kwargs = {k: round(v, self.n) if isinstance(v, float) else v | 
            |  | ) else v for k, v in kwargs.items()} |  | for k, v in kwargs.items()} | 
            |  | result = func(*rounded_args, **rounded_kwargs) |  | result = func(*args, **kwargs) | 
            |  | if isinstance(result, float): |  | if isinstance(result, float): | 
            |  | return round(result, self.n) |  | return round(result, self.n) | 
            |  | return result |  | return result | 
            |  | return wrapper |  | return wrapper |