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