From: Michal Rokos Date: 2002-05-16T00:44:51+02:00 Subject: Re: [BUG] Hi, On Thu, May 16, 2002 at 07:38:29AM +0900, nobu.nokada@softhome.net wrote: > > irb(main):003:0> "0x123".oct > > 291 > It's intended. String#oct recognizes prefixes "0", "0x" and > "0b". The negative argument means it. Could you state some reasons for it? (I know the behavior for base < -1, but here I simply don't understand why it is used here.) Michal -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Michal Rokos Czech Technical University, Prague E-mail:m.rokos@sh.cvut.cz ICQ:36118339 Jabber:majkl@jabber.sh.cvut.cz -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-