I want to calculate the code efficiency and therefore need the average codeword length, which I want to calculate from the digits of the decimal representation.

Is this possible?

Edit:

Just to be a bit more precise: I got a binary column as an output after encoding with arithmetic coding and would like to know if it is possible to represent this output as decimal instead of binary.

## Best Answer