abs

Absolute value

#include <stdlib.h>
long abs (
        long i
)

Arguments

i Integer argument

Return Value

The absolute value of i is returned.

Explanation

The absolute value of i is calculated and its value is returned. Since int and long are declared as the same type in the R3000, this function is equivalent to labs().

See Also

labs()