Add newline as requested.

This commit is contained in:
gawain 2019-03-06 22:00:20 +01:00
parent 0e3e029580
commit f812f293a1

View File

@ -362,6 +362,7 @@ Replacing ``%+f``, ``%-f``, and ``% f`` and specifying a sign::
// Result: "3.140000; -3.140000"
As a percentage::
format("{0:f} or {0:%}", .635);
// Result: "0.635000 or 63.500000%"
format("{:*^{}.{}%}", 1., 15, 2); // With fill, dynamic width and dynamic precision.