Outdent "return +s" and explain why. Thanks Raymond!
This commit is contained in:
parent
2dcf31c84a
commit
324efa3d31
|
@ -414,7 +414,9 @@ Examples
|
||||||
num *= x * x
|
num *= x * x
|
||||||
sign *= -1
|
sign *= -1
|
||||||
s += num / fact * sign
|
s += num / fact * sign
|
||||||
return +s
|
# The "+s" rounds back to the original precision,
|
||||||
|
# so this must be outside the do-statement:
|
||||||
|
return +s
|
||||||
|
|
||||||
An alternative version of the generator saves the entire
|
An alternative version of the generator saves the entire
|
||||||
context instead of just the precision attribute. This is more
|
context instead of just the precision attribute. This is more
|
||||||
|
|
Loading…
Reference in New Issue