Everything

llabs


Output absolute value (long long type)

[Classification]

Standard library

[Syntax]

#include <stdlib.h>

long long llabs(long long 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. This function is the same as abs, but uses long long type instead of int type, and the return value is also of long long type.

[Caution]

This function cannot be used when the -lang=c option and -strict_std option are both specified.