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

C Language Programming Library Reference Guide

stdlib.h - Math Functions - labs

Declaration: long int labs(long int x); Returns the absolute value of x. Not 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

Discover

     more......