Go to the first, previous, next, last section, table of contents.


abs

Syntax

#include <stdlib.h>

int abs(int value);

Return Value

The absolute value of value is returned.

Portability

ANSI, POSIX

Example

int sq = 7;
sq = sq * abs(sq) + 1;


Go to the first, previous, next, last section, table of contents.