CoreXLSX icon indicating copy to clipboard operation
CoreXLSX copied to clipboard

Excel Parser Truncates Leading 0's and Maybe Trailing 0's

Open Senbazuru1075 opened this issue 3 years ago • 2 comments

Version

Current

Description of the bug

The leading and trailing zeros of formatted numbers maybe truncated. Usually numbers don't start with zero so it's probably just the leading 0's

Steps to reproduce

Steps to reproduce the behavior, for example:

  1. Create an Excel File with leading zeros
  2. Parse worksheet and strings
  3. Append to an object or print into the console
  4. 00017 is actually 17

Expected behavior

Leading zeros should display

Additional context

I'm interested in implementing a workaround to get the truncated 0's This attached screenshot shows a possible solution. If you search truncated 0's with xlsx parser you get the solution that I found. Maybe you guys have a workaround for this Swift package?

Screen Shot 2023-01-03 at 4 35 27 PM

Senbazuru1075 avatar Jan 03 '23 21:01 Senbazuru1075

Hey @Senbazuru1075 can you provide a sample code + XLSX?

Joannis avatar Jan 15 '23 17:01 Joannis

Sorry, I can't provide the code because it was for work. I'm using the package personally. I will update if I face the same issues.

Senbazuru1075 avatar Feb 23 '23 02:02 Senbazuru1075