From 9d5ccdee14721878a35327ec861ef0d80c22e92e Mon Sep 17 00:00:00 2001 From: William Rusnack Date: Fri, 19 Jan 2018 06:39:37 -0500 Subject: [PATCH] value_power could be used in another location --- to_precision.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/to_precision.py b/to_precision.py index 51b66ee..035e35f 100644 --- a/to_precision.py +++ b/to_precision.py @@ -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