From: Me Me Date: 2008-10-28T00:11:38+09:00 Subject: format an integer Hi, this is a pretty silly question but I cannot figure it how to do. I need to format an integer in order to have always two digits: ex: 1 => 01 22 => 22 How can I do that in the shortest way possible? Thanks in advance -- Posted via http://www.ruby-forum.com/.