displaying float in c code example Example 1: printf c float printf("%.6f", myFloat); Example 2: print float in c printf("%.6f", myFloat);