Skip to content

Glossary: Software Design Patterns in C++

std::setprecision

Also written: std::fixed, std::setw, iomanip

Output formatting helpers from `<iomanip>`. `std::fixed` with `setprecision(2)` prints 467.5 as 467.50, and `setw` sets a value's width.

Where the book teaches it

Related terms

String stream