C: printf a float value December 31, 2022 by Tarik You can do it like this: printf("%.6f", myFloat); 6 represents the number of digits after the decimal separator.