From b866f03eee9ab3a664fa7430e42ed6ab3bedfd92 Mon Sep 17 00:00:00 2001 From: William Rusnack Date: Fri, 26 Jan 2018 07:07:57 -0500 Subject: [PATCH] warning about value_power --- to_precision.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/to_precision.py b/to_precision.py index 51b66ee..3cf280d 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 * 10.0**power))) # cannot use value_power because power is changed return sig_digits, int(-power), is_neg