On Wed, Sep 10, 2008 at 3:24 PM, Jan Pilz <pilz / osp-dd.de> 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.