7 lines
69 B
Python
7 lines
69 B
Python
![]() |
def rounding(f, r):
|
||
|
if not r:
|
||
|
return f
|
||
|
return round(f / r) * r
|
||
|
|
||
|
|