conversions.binary_to_excess3

Attributes

binary_input

Functions

binary_to_excess3(→ str)

Convert a binary number (as a string) to its Excess-3 code.

Module Contents

conversions.binary_to_excess3.binary_to_excess3(binary_str: str) str

Convert a binary number (as a string) to its Excess-3 code. https://en.wikipedia.org/wiki/Excess-3

Args:

binary_str (str): Binary number as a string (e.g., “1010”).

Returns:

str: Excess-3 code as a binary string.

Example:
>>> binary_to_excess3("1010")
'1101'
conversions.binary_to_excess3.binary_input