Type prefixes: L (upper case L) : printf Type prefixes « printf scanf « C Tutorial






Available for type-identifiers e, E, f, g, and G.

Display value as long double.

#include <stdio.h>
main()
{
    long double f = 9999.999;
    printf(" %LG \n",f);
}
10000








4.18.printf Type prefixes
4.18.1.Type prefixes: h
4.18.2.Type prefixes: l (lower case l)
4.18.3.Type prefixes: L (upper case L)