Everything

labs


Calculates the absolute value of a long type integer.

[Format]

#include <stdlib.h>

long labs (long j);

[Parameters]

j Integer to calculate the absolute value

[Return values]

Absolute value of j

[Remarks]

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