Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Senbazuru1075 opened this issue Jan 3, 2023 · 2 comments
Open

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

Senbazuru1075 opened this issue Jan 3, 2023 · 2 comments

Comments

@Senbazuru1075
Copy link

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

@MaxDesiatov MaxDesiatov removed their assignment Jan 3, 2023
@Joannis
Copy link
Member

Joannis commented Jan 15, 2023

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

@Senbazuru1075
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants