Example: abs

The following example uses abs to convert the integers 23 and -11 to their absolute values:

    int m = 23, n = -11;
    lr_output_message ("absolute value of %d = %d", m, abs(m));
    lr_output_message ("absolute value of %d = %d", n, abs(n));
Output:
Action.c(5): absolute value of 23 = 23
Action.c(6): absolute value of -11 = 11