Add newline as requested.
This commit is contained in:
parent
0e3e029580
commit
f812f293a1
@ -362,6 +362,7 @@ Replacing ``%+f``, ``%-f``, and ``% f`` and specifying a sign::
|
|||||||
// Result: "3.140000; -3.140000"
|
// Result: "3.140000; -3.140000"
|
||||||
|
|
||||||
As a percentage::
|
As a percentage::
|
||||||
|
|
||||||
format("{0:f} or {0:%}", .635);
|
format("{0:f} or {0:%}", .635);
|
||||||
// Result: "0.635000 or 63.500000%"
|
// Result: "0.635000 or 63.500000%"
|
||||||
format("{:*^{}.{}%}", 1., 15, 2); // With fill, dynamic width and dynamic precision.
|
format("{:*^{}.{}%}", 1., 15, 2); // With fill, dynamic width and dynamic precision.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user