Share this page

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

    Example: Output:
    Action.c(5): absolute value of 23 = 23
    Action.c(6): absolute value of -11 = 11

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: