Print float code example Example 1: printf c float printf("%.6f", myFloat); Example 2: printing float number python x = 1.1234567898 print("%.10f" % x)