Share this page

# 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

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: