Jump to content

C++ Programming/Code/Standard C Library/Functions/labs

From Wikibooks, open books for an open world
Syntax
#include <cstdlib>
long labs( long num );

The function labs() returns the absolute value of num.

Related topics
abs - fabs