Open ahmadfadlydziljalal opened 7 hours ago
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?