Merge pull request #3388 from PHPOffice/NumberFormat_Scaling-Unit-Tests

Additional unit tests for scaling values in Number Format Masks
This commit is contained in:
Mark Baker
2023-02-21 13:40:07 +01:00
committed by GitHub
+41
View File
@@ -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,
'#,###,.##',
],
];