Skip to content

Numbers passed in first argument to bases.fromAlplabet cause a return value of 0 #9

@pmaxhogan

Description

@pmaxhogan

When you call

bases.fromAlphabet(127, '0123456789abcdef'); 

returns 0, but

bases.fromAlphabet("127", '0123456789abcdef')

returns 295 (correct).

The fix is to call str = str.toString(); in the first line of bases.fromAlplabet.

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