Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>abs()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ABS()


Syntax:     ABS(<expN>)

Purpose:    To evaluate a numeric expression and return the absolute
            value.

Argument:   <expN> is a numeric expression to evaluate.

Returns:    A numeric value.

            ABS() returns a positive number or zero for any numeric
            expression argument, whether positive or negative.

Usage:      ABS() is used wherever you need to know the magnitude of a
            numeric expression.  This allows you to evaluate the
            difference between two numbers when you are not concerned
            with the sign of the result.

Library:    CLIPPER.LIB


----------------------------------- Examples -------------------------------

   a = 100
   b = 150
   ? a - b                    && Result: -50
   ? ABS(a - b)               && Result: 50
   ? ABS(-12)                 && Result: 12
   ? ABS(0)                   && Result: 0


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson