Skip to content

Commit

Permalink
value_power could be used in another location
Browse files Browse the repository at this point in the history
  • Loading branch information
BebeSparkelSparkel committed Jan 19, 2018
1 parent bfe6807 commit 9d5ccde
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_power)))

return sig_digits, int(-power), is_neg

0 comments on commit 9d5ccde

Please sign in to comment.