divide by 0???
This commit is contained in:
parent
59f2aac8ad
commit
315d42bbc5
|
@ -53,6 +53,9 @@ def jsonify_pretty(json_dict: Union[list, dict], status=200, indent=4, sort_keys
|
||||||
|
|
||||||
|
|
||||||
def round_up_base(n, base):
|
def round_up_base(n, base):
|
||||||
|
if base == 0:
|
||||||
|
print('round_up_base DIVIDE BY ZERO ERROR????', n, base)
|
||||||
|
return 0
|
||||||
return math.ceil(n / base) * base
|
return math.ceil(n / base) * base
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue