Crossware

Table of Contents        Previous topic       Next topic       

C LIBRARY FUNCTIONS->Detailed Descriptions->abs() absl()

Summary

#include <stdlib.h>
    
int abs(int n);Calculate absolute value
long absl(long n);Calculate absolute value

Parameter

n    The integer value to be converted


Description

These functions return the absolute value of parameter n.  I.e. if n is negative it is converted to positive.


Return

The functions return the absolute value of the value passed.