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

Use base 32 for the digits representation #9

Open
Laouen opened this issue Jul 10, 2018 · 1 comment
Open

Use base 32 for the digits representation #9

Laouen opened this issue Jul 10, 2018 · 1 comment
Assignees
Labels
After GSoC To implement before submitting to Boost C++ for inclusion

Comments

@Laouen
Copy link
Collaborator

Laouen commented Jul 10, 2018

currently, a number is represented as a vector but each digit goes between 0 and 9. The operations + - * / must be modified to use a higher base that uses the full int number.

Also the << operator must convert the number from the high base to the decimal base.

@Laouen Laouen self-assigned this Jul 10, 2018
@sdavtaker
Copy link
Contributor

It may be worth to pass the integer size as template parameter.
You can get it size with sizeof.

@Laouen Laouen changed the title Use the a highest base for the digits Use the highest base for the digits Aug 4, 2018
@Laouen Laouen added the After GSoC To implement before submitting to Boost C++ for inclusion label Aug 12, 2018
@Laouen Laouen changed the title Use the highest base for the digits Use base 32 for the digits representation Aug 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
After GSoC To implement before submitting to Boost C++ for inclusion
Projects
None yet
Development

No branches or pull requests

2 participants