Fix case where mergeComplexNumberFormatMasks would get stuck in endless-loop (#1793)

* Fix case where mergeComplexNumberFormatMasks would get stuck in endless-loop if $numbers had many decimals
This commit is contained in:
Mats Sibelius
2021-02-08 20:26:11 +02:00
committed by GitHub
parent b068639513
commit f60f37c362
2 changed files with 25 additions and 3 deletions
+20
View File
@@ -362,4 +362,24 @@ return [
25,
'[Green][<>25]"<>25 green";[Red]"else red"',
],
[
'pfx. 25.00',
25,
'"pfx." 0.00;"pfx." -0.00;"pfx." 0.00;',
],
[
'pfx. 25.20',
25.2,
'"pfx." 0.00;"pfx." -0.00;"pfx." 0.00;',
],
[
'pfx. -25.20',
-25.2,
'"pfx." 0.00;"pfx." -0.00;"pfx." 0.00;',
],
[
'pfx. 25.26',
25.255555555555555,
'"pfx." 0.00;"pfx." -0.00;"pfx." 0.00;',
],
];