3 lines
88 B
Python
3 lines
88 B
Python
def safe_division(n: int, d: int, r: int = 2):
|
|
return round((n / d), r) if d else 0
|