printf Format Specifier Conventions

Top 

 

Certain conventions accompany some of the printf format specifiers for the following conversions:

- %e or %E

- %f

- %g or %G

- %x or %X

Note. Infinite floating-point numbers are printed as +INF and -INF. An IEEE Not-a-Number is printed as +NAN or -NAN.