Helper round ndigits is optional

This commit is contained in:
JonnyWong16 2021-05-25 11:54:17 -07:00
parent 843f7bcabe
commit 93ed5c5eb8
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -537,7 +537,7 @@ def helper_divmod(a, b):
return 0 return 0
def helper_round(n, ndigits): def helper_round(n, ndigits=None):
try: try:
return round(n, ndigits) return round(n, ndigits)
except (ValueError, TypeError): except (ValueError, TypeError):