From 21868302a7f56828a4837f272c448d55500f2392 Mon Sep 17 00:00:00 2001 From: Jakukyo Friel Date: Sun, 21 Aug 2016 16:36:43 +0800 Subject: [PATCH] readme: `.to_s()` works with base bigger than 62. --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index df67f37..580c7c4 100644 --- a/README.md +++ b/README.md @@ -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"