I need the following to only print out two decimal points. How do I do that? I can't figure it out. If you need full program code, let me know.
Code:ostream& operator<<(ostream& out, Complex& c) { out ; if (c._real !=0) out << c._real; if (c._imaginary >=0) out << " + "; if (c._imaginary > 0) out << c._imaginary; cout << "i"; return out; }