Skip to content

Commit

Permalink
warning about value_power
Browse files Browse the repository at this point in the history
  • Loading branch information
BebeSparkelSparkel committed Jan 26, 2018
1 parent 7b50166 commit b866f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion to_precision.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def _number_profile(value, precision):
floor(log10(int(value_power))):
power -= 1

sig_digits = str(int(round(value * 10.0**power)))
sig_digits = str(int(round(value * 10.0**power))) # cannot use value_power because power is changed

return sig_digits, int(-power), is_neg

0 comments on commit b866f03

Please sign in to comment.