mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-10-09 05:16:18 +00:00
Substitute a literal dot inside quotes within number format masks to prevent it being mistaken for a decimal separator (#1830)
* Substitute a literal dot inside quotes within number format masks to prevent it being mistaken for a decimal separator
This commit is contained in:
@@ -88,6 +88,26 @@ return [
|
||||
12345.678900000001,
|
||||
'#,##0.000',
|
||||
],
|
||||
[
|
||||
'12.34 kg',
|
||||
12.34,
|
||||
'0.00 "kg"',
|
||||
],
|
||||
[
|
||||
'kg 12.34',
|
||||
12.34,
|
||||
'"kg" 0.00',
|
||||
],
|
||||
[
|
||||
'12.34 kg.',
|
||||
12.34,
|
||||
'0.00 "kg."',
|
||||
],
|
||||
[
|
||||
'kg. 12.34',
|
||||
12.34,
|
||||
'"kg." 0.00',
|
||||
],
|
||||
[
|
||||
'£ 12,345.68',
|
||||
12345.678900000001,
|
||||
|
||||
Reference in New Issue
Block a user