C language example - output double precision (double) number

C 语言实例C Language Examples

Usageprintf()and%eOutput double-precision number.

Example

#include <stdio.h> int main() { double d; // Declare a double-precision variable d = 12.001234; // Define a double-precision variable printf("The value of d is %le", d); return 0; }

Output result:

d 的值为 1.200123e+01

C Language Examples

other extensions