Home > Electronics Tutorials > C Language Tutorial > stdlib.h - Math Functions - abs

C Language Programming Library Reference Guide

stdlib.h - Math Functions - abs

Declaration: int abs(int x); Returns the absolute value of x. Note that in two's compliment that the most maximum number cannot be represented as a positive number. The result in this case is undefined.

The absolute value is returned.

Note: To report broken links or to submit your projects, tutorials please email to Webmaster