From: Xavier Noria Date: 2008-09-10T22:32:16+09:00 Subject: Re: Please explain that On Wed, Sep 10, 2008 at 3:24 PM, Jan Pilz wrote: > Can you please explain this behaviour ? > > irb(main):017:0> 071.to_s On the one hand a leading "0" in an integer literal like that tells Ruby you are using base 8. On the other hand #to_s prints in base 10 (by default). You've got the same number, only written in different ways.