I have a double variable in C++ and want to print it out to the screen as a fixed decimal point number.
Basically I want to know how to write a function that takes a
Assuming I'm remembering my format strings correctly,
printf("%.*f", (int)precision, (double)number);