Gives the absolute value of a long integer #include <stdlib.h> long labs ( long n ); The parameter and the return value of labs( ) are long integers. Otherwise, labs( ) works the same as the int function abs( ). ExampleSee the example for abs( ) in this chapter. See Also |