Skip to content

Commit

Permalink
to_integer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichaels-harvard committed Aug 9, 2024
1 parent e5d2f76 commit f726e04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dcicutils/misc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ def to_number(value: str,
# rather than 1567.8 if (we simply did 1.5678 * 1000.0); also tried multiplying by 10 at
# a time, and using Decimal, which obviated some, but not all, of the idiosyncrasies.
if value_fraction:
for n in range(value_multiplier):
for _ in range(value_multiplier):
if value_fraction:
value += value_fraction[0]
value_fraction = value_fraction[1:]
Expand Down

0 comments on commit f726e04

Please sign in to comment.