Utility Functions and C Language Reference > C Language Reference > Alphabetical List of Functions > abs

abs

Example: abs Mathematics Functions

Gets the absolute value of an integer.

int abs( int n);

n An integer.

Return Values

The absolute value of the integer.

For abs details, refer to your C language documentation.