Skip to content

Reading XLS is ignoring DecimalSeparator settings #2345

Answered by oleibman
cyklop asked this question in Q&A
Discussion options

You must be logged in to vote

I believe that Excel stores all its data using period for decimal separator - see for example https://social.technet.microsoft.com/Forums/office/en-US/eaa4c7f6-197a-4b33-bc5f-20896e5a7e3a/workbook-or-worksheet-specific-decimal-separator?forum=excel. There is a global option which allows you to change the decimal separator when data is displayed, but it is applied globally, not to specific workbooks. So, Excel doesn't actually store the decimal separator in use with the workbook; thus, there is no way for for PhpSpreadsheet to automatically do as you wish. This is especially true if you use the default Number Format General. If you set the style to use a custom Number Format, you might be …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by oleibman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants