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:
Mark Baker
2021-02-08 15:06:07 +01:00
committed by GitHub
parent 2fac9ee2f7
commit b068639513
3 changed files with 31 additions and 0 deletions
+20
View File
@@ -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,