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

to base #2547

Closed
wants to merge 1 commit into from
Closed

to base #2547

wants to merge 1 commit into from

Conversation

devmanny
Copy link

Convert an integer to bin, hex, oct, works with signed numbers.

Number.implement("toBase", function(base){
        return (this >>> 0).toString(base);
});

(-30).toBase(16) != (-30).toString(16);

@ibolmo ibolmo added this to the 1.6 milestone Mar 3, 2014
@ibolmo
Copy link
Member

ibolmo commented Mar 3, 2014

You're missing docs and specs for this addition.

@SergioCrisostomo
Copy link
Member

@MannyDev could you make some specs for this? if you need help on that let me know.

@devmanny devmanny closed this Apr 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants