Share this page

# Example: double

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 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: