From: John Joyce Date: 2007-09-18T23:59:08+09:00 Subject: Re: converting text --Apple-Mail-4--780539266 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Sep 18, 2007, at 9:48 AM, Analogy Analogy wrote: > [1.80%, 14.50%, ruby, 3.10%] Those are not numbers. They will be strings. If you want numbers you'll need to do some work to first remove the % characters and then convert them to_f (because they're conceptually floats) After that Ruby will by default lop off the trailing 0's But you won't have that % character on them. If you need to use that format and use it a lot, create a class for them. --Apple-Mail-4--780539266--