Skip to content

Commit

Permalink
Revert "value_power could be used in another location"
Browse files Browse the repository at this point in the history
This reverts commit 9d5ccde.
  • Loading branch information
BebeSparkelSparkel committed Jan 26, 2018
1 parent d086702 commit 7b50166
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_power)))
sig_digits = str(int(round(value * 10.0**power)))

return sig_digits, int(-power), is_neg

0 comments on commit 7b50166

Please sign in to comment.