From: Jack Su Date: 2010-10-18T12:00:15+09:00 Subject: Re: data type for a string value Xavier Noria wrote in post #955025: > This problem is too generic. Are we talking only numbers vs strings or > are there more data types involved? as I mentioned, all data types, including dates, data times, percentage, currency, etc. for example, there can be "$ 1.02". basically values you can see in a spreadsheet. > If the former, do you need to tell > integers from floats? No. > Are the conventions on number formatting known > beforehand? No, and Yes. there are a set of them, such as '1,234' and '2010-09-09' and '09/09/2010'. That is the point. a human can see it right away, but a computer will need to need to figure this out. -- Posted via http://www.ruby-forum.com/.