From 448ccb8081fc110a3c76edcf73a82eb763456cdc Mon Sep 17 00:00:00 2001 From: Will Green Date: Sun, 8 Jan 2023 12:22:25 +0000 Subject: [PATCH] Fix toDecimalString function docstring. 'fractional_bits' should be 'fraction_bits' --- FixedPoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FixedPoint.py b/FixedPoint.py index 4bccd9f..92efc48 100644 --- a/FixedPoint.py +++ b/FixedPoint.py @@ -523,7 +523,7 @@ def toDecimalString(self, precision=None, round10=False): of the indicative base-10 precision, which may be significantly less than the number of decimal digits required to fully represent the lowest-order - fractional bit. Set this to self.family.fractional_bits + fractional bit. Set this to self.family.fraction_bits to guarantee that all non-zero decimal digits are shown. round10 - Round last decimal digit of fractional part, by adding 0.5/10^precision.