N NuclearFusi0n Diamond Member Jul 2, 2001 7,028 0 0 Dec 8, 2002 #1 how do you throw output a variable of type double with two decimal places? like, i want 2.5 to show up at 2.50
how do you throw output a variable of type double with two decimal places? like, i want 2.5 to show up at 2.50
S SWScorch Diamond Member May 13, 2001 9,520 1 76 Dec 8, 2002 #2 setprecision(2) I believe, like cout << setprecision(2) << right << amount << endl;