Like so:
#include <iomanip>
#include <iostream>
std::cout << std::setw(15) << pi_18 << std::endl;
The width modifier only affects the next formatting operation, so if you want to format multiple numbers, you have to repeat it before every one. Check out the full documentation of format specifiers.