Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary Code? with a dot? #2

Open
andreabisello opened this issue Apr 21, 2024 · 1 comment
Open

Binary Code? with a dot? #2

andreabisello opened this issue Apr 21, 2024 · 1 comment
Labels
question Further information is requested

Comments

@andreabisello
Copy link

Hi,
and many thanks for this repository.
I have a question regarding binary code provided with the examples, like this one https://github.com/ahmedfgad/ArithmeticEncodingPython?tab=readme-ov-file#example
why does binary code is like 0.0010110?
why there is a dot?
You know, i would like to mare a comparison with Huffman encoding, calculating the length in bits of the messages, but the presence of the . is confusing me.
thanks

@ahmedfgad ahmedfgad added the question Further information is requested label Jan 7, 2025
@ahmedfgad
Copy link
Owner

The dot is just for separating the integer from the decimal part of the number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants