def safe_division(n: int, d: int, r: int = 2): return round((n / d), r) if d else 0