You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a spreadsheet that contains float values in two columns, with column B formatted the floats as integers. In the spreadsheet I see the column B values rounded, however when I read those values though simple_xlsx_reader column B values are floored.
require 'simple_xlsx_reader'
reader = SimpleXlsxReader.open('FLOATS_FORMATTED_AS_INTs.xlsx')
worksheet = reader.sheets.first
worksheet.rows.each do |row|
break if not row[0]
puts "#{row[0]}, #{row[1]}"
end
I believe this is the same as issue #16
I have a spreadsheet that contains float values in two columns, with column B formatted the floats as integers. In the spreadsheet I see the column B values rounded, however when I read those values though simple_xlsx_reader column B values are floored.
Output:
Compare to the screenshot from the spreadsheet:
Spreadsheet attached:
FLOATS_FORMATTED_AS_INTs.xlsx
Is there any way we could have access to the actual non-formatted cell value? eg.
row[1].actual
The text was updated successfully, but these errors were encountered: