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

Alphabet on .toString() #242

Closed
doriandrn opened this issue Nov 20, 2023 · 2 comments
Closed

Alphabet on .toString() #242

doriandrn opened this issue Nov 20, 2023 · 2 comments

Comments

@doriandrn
Copy link

Hello,

I've been having a bug in my app for so long and I think I've just figured it out why it is happening.

.toString(radix, alphabet) works all right in my test cases with all radixes and different alphabets, yet it just doesn't when using 10 for radix and an alphabet.

bigInt(5).toString(10, 'ABCDEFGHIJKLMNOP') returns '5' which is not to be found in the alphabet requested.

peterolson added a commit that referenced this issue Nov 21, 2023
@peterolson
Copy link
Owner

fixed in version 1.6.52

@doriandrn
Copy link
Author

Thank you!

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

No branches or pull requests

2 participants