abs


Obtain absolute value (int type)

[Classification]

Standard library

[Syntax]

#include <stdlib.h>

int __far abs(int j);

[Return value]

Returns the absolute value of j (size of j), | j |.

[Description]

This function obtains the absolute value of j (size of j), | j |. If j is a negative number, the result is the reversal of j. If j is not negative, the result is j.