how to print double value up to 9 decimal places in c++
#include <iostream>
#include <iomanip>
int main() {
double value = 123.456789;
std::cout << std::fixed << std::setprecision(9) << value << std::endl;
return 0;
}
#include <iostream>
#include <iomanip>
int main() {
double value = 123.456789;
std::cout << std::fixed << std::setprecision(9) << value << std::endl;
return 0;
}