[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
how can I cout the value of a double with setprecision
in c++ without the number being rounded at all.
using namespace std;
double num = 8.5732;
cout << setprecision(3) << num;
"I refuse to prove that I exist", says god. "For proof denies faith, and without faith I am nothing." "But", says man. "The babel fish is a dead giveaway, isn't it? It could not have evolved by chance. it proves you exist, and so therefore by your own arguments, you don't." QED
--The Hitchhiker's Guide To The Galaxy
By Douglas Adams
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
To unsubscribe, send email to firstname.lastname@example.org with
"unsubscribe luci-discuss" in the body.