I am trying to round a double vector to 2 decimal places, but it prints out the number to 6 decimal places.
for (int i = 0; i < count; i++)
{
cout << fixed << setw(4) << round(v_monthly_investment[i]) * 100 / 100 << " ";
cout << fixed << setw(4) << round(v_yearly_rate[i]) * 100 / 100 << " ";
cout << fixed << setw(4) << round(v_years[i]) * 100 / 100 << " ";
cout << setw(2) << round(v_future_value[i]*100.0)/100.0 << endl;
}