Skip to content

Commit

Permalink
Merge branch 'main' of github.com:open-resources/problem_bank_helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
firasm committed Oct 2, 2023
2 parents 457489e + 3ce9cd9 commit b9854b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/problem_bank_helpers/problem_bank_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ def roundp(*args,**kwargs):
num_str = str(float(a[0]))

# Create default sigfigs if necessary
if kw.get('sigfigs',None):
if kw.get('sigfigs',None) != None:
z = kw['sigfigs']
elif kw.get('decimals', None):
elif kw.get('decimals', None) != None:
z = kw['decimals']
else:
z = 3 # Default sig figs
Expand Down

0 comments on commit b9854b3

Please sign in to comment.