refactor: Remove default value of exponential_term (#4308)

exponential_term doesn't need a default value
This commit is contained in:
Elisha Hollander 2021-04-04 07:02:36 +03:00 committed by GitHub
parent 0992498a10
commit 806b3864c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,6 @@ def _subsum(
sum = 0.0
for sum_index in range(digit_pos_to_extract + precision):
denominator = 8 * sum_index + denominator_addend
exponential_term = 0.0
if sum_index < digit_pos_to_extract:
# if the exponential term is an integer and we mod it by the denominator
# before dividing, only the integer part of the sum will change;