From: Li Chen Date: 2006-10-20T04:49:08+09:00 Subject: How to format an array Hi all, I have an array [1.0, 2.0, 3, 4,5,6]. I want to format all the elements within the array into to this format "%5.3f", that is 5 spaces/characters for each number/element, followed by 3 floating points. Any help will be appreciate. Li -- Posted via http://www.ruby-forum.com/.