mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-20 00:02:04 +00:00
refactor: Remove default value of exponential_term (#4308)
exponential_term doesn't need a default value
This commit is contained in:
parent
0992498a10
commit
806b3864c3
|
@ -70,7 +70,6 @@ def _subsum(
|
||||||
sum = 0.0
|
sum = 0.0
|
||||||
for sum_index in range(digit_pos_to_extract + precision):
|
for sum_index in range(digit_pos_to_extract + precision):
|
||||||
denominator = 8 * sum_index + denominator_addend
|
denominator = 8 * sum_index + denominator_addend
|
||||||
exponential_term = 0.0
|
|
||||||
if sum_index < digit_pos_to_extract:
|
if sum_index < digit_pos_to_extract:
|
||||||
# if the exponential term is an integer and we mod it by the denominator
|
# 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;
|
# before dividing, only the integer part of the sum will change;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user