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

BOISSON_Louise_Converter #99

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open

BOISSON_Louise_Converter #99

wants to merge 20 commits into from

Conversation

Lou13213
Copy link

No description provided.

rgt-yncrea and others added 20 commits September 19, 2022 14:19
Function that convert a positive decimal int to
binary, represented as list of 0s and 1s
Function that converts a array of 0s and 1s to an int
Uses bitshift that are faster to compute than powers / divisions
Adds documentation to the conversion functions
raise an Exception if the input is negative for decimal to bin
conversion
Check bin to dec converter inputs. Raise error if some entries are not 0
or 1s
Check if inputs is made of bits only in a separate function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants