double

Defines a double precision floating point number of 8 bytes. It accepts numbers in the range of 1.7 e +/- 308 (15 digits). For more information, see Type-Specifier.

Example

The following example calculates the cosine of the double, x.

#include <math.h>
    double cos(double x); 
    double x = 45.885;
    lr_output_message ("Cosine of %lf deg = %lf", x, cos(x * PI/180));
Example: Output:
Action.c(9): Cosine of 45.885000 deg = 0.696101