answersLogoWhite

0

%f is used as a format mask to represent a floating point number.

Any of the "formatted" io functions can use this: printf, fprintf, scanf, etc.

Example:
float n = 1.5;
printf("%f", n); // prints the value of n

User Avatar

Wiki User

∙ 17y ago
User Avatar

What else can I help you with?

Related Questions

When use percent e and when use percent f?

%f is used for the floating value in programing languages like c,c++. these floating values are those which contain the decimal no.s like 23.76 etc to show these values we use %f. now %e is used for the exponent value in c language. Note: When in doubt, use %g


What is the difference of C percent and F percent?

(C - F) percent.


How do you convert the decimal to integer value in C language?

Use an implicit or explicit cast. Since integers are whole numbers, the decimal portion will be truncated. Example in C: float f; int i; f = 1.5; i = f; // i = 1.0 Example in C++: float f = 1.5; int i = ( int ) f;


Different between DDU and C and F?

This exactly the same but in difference professional language. I'm a supplier and with our customer we say C and F but with any freight transporter their use the DDU term.


What is meaning of f in printf in c language?

formatted


What has the author C F Schofield written?

C. F. Schofield has written: 'A manual of the Atlas Fortran V language'


What is the full form of the f in printf in c language?

formatted


What grade is 60 percent out of 100 percent?

It is either a C or D, but if the teacher is "hard" than its a F.


How do you turn C into F?

Use this formula: [°F] = [°C] × 1.8 + 32


IS 60 percent a B or a C?

Unless graded on a curve, 60% is an F.


How convert integer to float using switch case in c?

The switch/case statement in the c language is defined by the language specification to use an int value, so you can not use a float value. You can, however, convert the float into an int and use it, so long as the resulting values and functionality meet your functional requirements.


What do a b c d and f stand for on a report card from school?

The letter system for grades is an American way of translating numeric grades into something easier for kids to understand. Here's how it translates out: A = 95 to 100 percent = 4.0 B = 85 to 95 percent = 3.5 C =75 to 85 percent = 3.0 D = 70 to 75 percent = 2.5 F = below 70 percent