I am converting price to a string and this needs to output two decimal places for to_string(). How do I do that?
string Antique::toString()
{
string info = name + ": " + " $" + to_string(price);
return info;
}
I am converting price to a string and this needs to output two decimal places for to_string(). How do I do that?
string Antique::toString()
{
string info = name + ": " + " $" + to_string(price);
return info;
}