mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-30 20:18:00 +00:00
Additional unit tests for scaling values in Number Format Masks
This commit is contained in:
@@ -1509,4 +1509,45 @@ return [
|
||||
12345.74,
|
||||
'[$€]#,##0.00" Surplus for Product #12-345";$-#,##0.00" Shortage for Product #12-345"',
|
||||
],
|
||||
// Scaling
|
||||
[
|
||||
'12,000',
|
||||
12000,
|
||||
'#,###',
|
||||
],
|
||||
[
|
||||
'12',
|
||||
12000,
|
||||
'#,',
|
||||
],
|
||||
[
|
||||
'0',
|
||||
120,
|
||||
'#,',
|
||||
],
|
||||
[
|
||||
'0.12',
|
||||
120,
|
||||
'#,.00',
|
||||
],
|
||||
[
|
||||
'12k',
|
||||
12000,
|
||||
'#,k',
|
||||
],
|
||||
[
|
||||
'12.2',
|
||||
12200000,
|
||||
'0.0,,',
|
||||
],
|
||||
[
|
||||
'12.2 M',
|
||||
12200000,
|
||||
'0.0,, M',
|
||||
],
|
||||
[
|
||||
'1,025.13',
|
||||
1025132.36,
|
||||
'#,###,.##',
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user