Skip to content

Commit 211d42f

Browse files
committed
Change value of base in math.log to e
1 parent 20cc40a commit 211d42f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-bindings/math/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ STATIC NORETURN void math_error(void) {
157157
//| """Return ``x * (2**exp)``."""
158158
//| ...
159159
//|
160-
//| def log(x: float, base: float = 2.71828) -> float:
160+
//| def log(x: float, base: float = e) -> float:
161161
//| """Return the logarithm of x to the given base. If base is not specified,
162162
//| returns the natural logarithm (base e) of x"""
163163
//| ...

0 commit comments

Comments
 (0)