diff --git a/lib/saxlsx/rows_collection_parser.rb b/lib/saxlsx/rows_collection_parser.rb index 240e933..48c78c5 100644 --- a/lib/saxlsx/rows_collection_parser.rb +++ b/lib/saxlsx/rows_collection_parser.rb @@ -110,12 +110,10 @@ def value_of(text) DateTime.new(date.year, date.month, date.day, date.hour, date.minute, date.second) when :fixnum text.to_i - when :float + when :float, :percentage text.to_f when :bignum BigDecimal.new(text) - when :percentage - text.to_f / 100 else if @current_type == 'n' text.to_f @@ -150,4 +148,4 @@ def detect_custom_format_type(code) end end end -end \ No newline at end of file +end