precision past decimal

I am working on a calculation that needs to be able output
the product with a precision of at minimum of 10 digits behind the decimal point. I have been able to get 6 digits using standard output. Does any one know how I might be able to do this? Without ending up with something like
Who is Participating?
chensuConnect With a Mentor Commented:
double a = 0.123456789;
printf("%.10e", a);
Or printf("%.10f", a);

printf("%.10g", a);
bbarnetteAuthor Commented:
"f", did it thanks
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.