From 7b5016662fc0f870f67f56928eee6a572a6d03f1 Mon Sep 17 00:00:00 2001 From: William Rusnack Date: Fri, 26 Jan 2018 07:05:35 -0500 Subject: [PATCH] Revert "value_power could be used in another location" This reverts commit 9d5ccdee14721878a35327ec861ef0d80c22e92e. --- to_precision.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/to_precision.py b/to_precision.py index 035e35f..51b66ee 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_power))) + sig_digits = str(int(round(value * 10.0**power))) return sig_digits, int(-power), is_neg