mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-03 12:24:26 +02:00
docs: "Output stream formatting" chapter updated
This commit is contained in:
@@ -81,7 +81,8 @@ associated with this quantity.
|
||||
### Output stream formatting
|
||||
|
||||
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
|
||||
std::cout << "|" << std::setw(10) << 123 * m << "|\n"; // | 123 m|
|
||||
|
Reference in New Issue
Block a user