Skip to content

difference between this implementation and the Number.prototype.toString #21

@Strandedpirate

Description

@Strandedpirate

I'm getting different results between implementations. I'm missing something. Other than the fact that this implementation is using crockford's limited character set why are these two base32 encodings wildly off?

var number = 14974;
number.toString(32); // -> eju
base32.encode(number.toString()); // -> 64u3jdtm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions