Is there any way to have a user inputed float format specifier? For example, if I print this.
float c = 15.0123 printf(\"%.2f\", c); // outputs: 15.01
printf("%.*f", n, c); that will print out c with n places after the decimal.
printf("%.*f", n, c);