0
How to force output to be in standard notation instead of scientific notation in C++ .
like .00001 and not like 1e-6
3 ответов
+ 5
Use printf with '%f' format:
#include <iostream>
#include <cstdio>
int main()
{
double d{1e-6};
printf("Value of d = %f", d);
return 0;
}
http://www.cplusplus.com/reference/cstdio/printf/
+ 1
thanks.
0
👍👍