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

readme: .to_s() works with base bigger than 62. #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,13 @@ For example, a number in base 256 can be represented by the array `[100, 10]`
[100,10].b(256).to_a(10) #=> [2,5,6,1,0]
```

Or, to get a string representation for any base up to 62.
Or, to get a string representation for any base.

```ruby
[100,10].b(256).to_s(10) #=> "25610"
```

A string representation of a number can be converted too, again,
up to base 62.
A string representation of a number can be converted too.

```ruby
"10".b(62).to_s(10) #=> "62"
Expand Down