How do you increase it from six decimal places? A programmer's reference book I have speaks of a precision(int p); function, but MSVC++6 doesn't seem to support it.
How do you increase it from six decimal places? A programmer's reference book I have speaks of a precision(int p); function, but MSVC++6 doesn't seem to support it.
Code:#include <iostream> #include <iomanip> int main() { double d = 11.12345678901; std::cout.setf(std::ios::showpoint | std::ios::fixed); std::cout <<std::setprecision(11) <<d <<std::endl; }
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]