Open topic with navigation

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));

Output:Action.c(9): Cosine of 45.885000 deg = 0.696101