cppreference.com
>
Standard C Math
>
labs
labs
Syntax:
#include <stdlib.h> long labs( long num );
The function labs() returns the absolute value of
num
.
Related topics:
abs
fabs