I want to print a float value which has 2 integer digits and 6 decimal digits after the comma. If I just use printf(\"%f\", myFloat) I\'m getting a truncated va
printf(\"%f\", myFloat)
You can do it like this:
printf("%.6f", myFloat);
6 represents the number of digits after the decimal separator.