I have a problem writing a double with no decimals. I know how to decrease decimals with setprecision and fixed.
double one = 3.414, two = 3.514;
cout << one <" " <<two;
How to make the outcome 3 4?
thanks for any help at all!
cout << std::setprecision(0) << one << " " <<two;
it doesn´t seem to work tho..?
What doesn't work? Could you post the code you have so we can see whats wrong? Because it should work.