-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
overflow numeric cell value on 386 #386
Comments
Interesting, |
I wonder if this is the culprit. We're not checking any errors there and it converts to an int. Will need to test to find out. |
I'm guessing this has been fixed? With latest:
I am taking a look if there is a regression test written in this respect. Would that be appreciated? |
@psyomn not fixed
|
Would you be able to PR this test into the repo? It would be helpful for making a fix and preventing a regression later. Edit: Never mind, I see there is already an open PR. |
hmm travis - tests passed, my laptop - failed |
bug localized in styles.go/formatToInt - return fmt.Sprintf("%d", int(f))
+ return fmt.Sprintf("%d", int64(f)) now all ok @xuri |
If I'm reading that correctly, that might be a good workaround for now, but I wonder what happens if we get even bigger numbers than |
That’s an understatement if I’m reading the docs right. I wonder if any of the crypto libraries have support for efficient big numbers. |
@xuri Maybe for performance reasons and our own sanity we specify that the maximum numeric value we support is an int64? That should cover a substantial majority of use cases, and we can investigate broadening that support more carefully if it comes up. I'd be in favor of closing this issue now that we are at least properly specifying the integer type. |
* qax-os#386 regression test added * closes qax-os#386 string to bigint on GOARCH=386
Description
I am trying to read xlsx files containing ean13 codes for example 8595602512225
Sample file (attached to issue or download from gdrive)
barcode_test.xlsx
https://drive.google.com/open?id=16FswVFaJ5I1cVPVeViOTZWLOGg1b1eJz
This is important because when I simply open and save this file in libreoffice, the error is not reproduced.
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
(and this output after open then save in libreoffice)
Output of
go version
:Excelize version or commit ID:
Environment details (OS, Microsoft Excel™ version, physical, etc.):
Microsoft Excel™ is unknown - i just received this file
(same result on win10)
The text was updated successfully, but these errors were encountered: