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

15y ago

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


How do you turn C into F?

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


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.


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.


71 F in C?

To convert 71°F to Celsius, you can use the formula: C = (F - 32) x 5/9. In this case, 71°F is equal to 21.67°C.