From: Cory Date: 2007-06-01T01:03:26+09:00 Subject: Number formatting folks - can't quite figure this one out... foo = 5 bar = 10 basically - when i go to print out the numbers - i want to format 'foo' with a leding zero so that it reads '05' and is aesthetically pleasing when compared to a double-digit number - such as bar: '10'. essentially looking to get: 05 10 25 03 -- Posted via http://www.ruby-forum.com/.