Return the largest integer power of *base* that's less than *x*. If *x* is negative, the exponent will be *greater*.
(x, base)
| 2365 | |
| 2366 | |
| 2367 | def _decade_less(x, base): |
| 2368 | """ |
| 2369 | Return the largest integer power of *base* that's less than *x*. |
| 2370 | |
| 2371 | If *x* is negative, the exponent will be *greater*. |
| 2372 | """ |
| 2373 | if x < 0: |
| 2374 | return -_decade_greater(-x, base) |
| 2375 | less = _decade_less_equal(x, base) |
| 2376 | if less == x: |
| 2377 | less /= base |
| 2378 | return less |
| 2379 | |
| 2380 | |
| 2381 | def _decade_greater(x, base): |
no test coverage detected
searching dependent graphs…