From: Love U Ruby Date: 2013-02-12T01:01:41+09:00 Subject: Re: Issue with Excel column values read. Wayne Brisette wrote in post #1096314: > If you're using the spreadsheet gem (which I am for one script), then > you'll > have to use .to_i since values are always brought in as real numbers. If > the > issue is that you may have a nil value, just do this: > > excel_value.to_i if excel_value.!nil? > > Wayne > > This is the column as an example : Tax code ======== wst-45 tre-2% 12.45% 10 5 ascht5 where different kind of values can be present. And I am using "win32ole". So how could I use the "to_i"? -- Posted via http://www.ruby-forum.com/.