invocation of printf you can define the number of decimal places that will print the value associated with a variable of type float .
printf ("% .3 f \\ n", f1) / / print 3 decimal
printf ("% .10 f \\ n", f1) / / print 10 decimal places
The default print function for each 6-digit decimal float . The above description also applies to
types double .
0 comments:
Post a Comment