MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / _base10_to_85

Function _base10_to_85

ciphers/base85.py:8–9  ·  view source on GitHub ↗
(d: int)

Source from the content-addressed store, hash-verified

6
7
8def _base10_to_85(d: int) -> str:
9 return "".join(chr(d % 85 + 33)) + _base10_to_85(d // 85) if d > 0 else ""
10
11
12def _base85_to_10(digits: list) -> int:

Callers 1

ascii85_encodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected