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
- [1 ] a bug report
- [ ] a feature request
- [ ] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)
What is the expected behavior?
Keep a decimal number stay original from a PHP array,
As you can see at the image below:
Real value: 149819.78,
Formatted value: 149819.7800
If this is an issue with reading a specific spreadsheet file, then it may be appropriate to provide a sample file that demonstrates the problem; but please keep it as small as possible, and sanitize any confidential information before uploading.
What features do you think are causing the issue
[ 1] Reader
[ 1] Writer
Styles
Data Validations
Formula Calculations
Charts
AutoFilter
Form Elements
Does an issue affect all spreadsheet file formats? If not, which formats are affected?
Which versions of PhpSpreadsheet and PHP are affected?
The text was updated successfully, but these errors were encountered:
A number on the formula bar will display as Excel wishes to display it; this will be without trailing zeros in the decimal portion. You can see the same behavior in Excel quite easily - if you enter 1.00 in a cell (with default formatting), Excel will display it as 1 in both the cell and the formula bar. What kind of problem is this causing for you? In particular, why do you feel that the value it is displaying is "wrong"?
If, as it seems, you want the cell contents to be treated as a string, you might want to try StringValueBinder.
This is:
What is the expected behavior?
Keep a decimal number stay original from a PHP array,
As you can see at the image below:
Real value:
149819.78
,Formatted value:
149819.7800
What is the current behavior?
Format is OK, but not the actual value.
What are the steps to reproduce?
Please consider that you have an array like this:
If this is an issue with reading a specific spreadsheet file, then it may be appropriate to provide a sample file that demonstrates the problem; but please keep it as small as possible, and sanitize any confidential information before uploading.
What features do you think are causing the issue
Does an issue affect all spreadsheet file formats? If not, which formats are affected?
Which versions of PhpSpreadsheet and PHP are affected?
The text was updated successfully, but these errors were encountered: