Everything

abs


Calculates the absolute value of an int type integer.

[Format]

#include <stdlib.h>

long abs (long i);

[Parameters]

i Integer to calculate the absolute value

[Return values]

Absolute value of i

[Remarks]

If the resultant absolute value cannot be expressed as an int type integer, correct operation is not guaranteed.