mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-05 13:14:29 +02:00
docs: "Output stream formatting" chapter updated
This commit is contained in:
@@ -81,7 +81,8 @@ associated with this quantity.
|
|||||||
### Output stream formatting
|
### Output stream formatting
|
||||||
|
|
||||||
Only basic formatting can be applied for output streams. It includes control over width, fill,
|
Only basic formatting can be applied for output streams. It includes control over width, fill,
|
||||||
and alignment:
|
and alignment of the entire quantity and formatting of a quantity numerical value according
|
||||||
|
to the general C++ rules:
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
std::cout << "|" << std::setw(10) << 123 * m << "|\n"; // | 123 m|
|
std::cout << "|" << std::setw(10) << 123 * m << "|\n"; // | 123 m|
|
||||||
|
Reference in New Issue
Block a user