Table of Contents
Previous Section Next Section

fabs

#include <math.h>float fabsf(float num);double fabs(double num);
long double fabsl(long double num);

fabsf( ) and fabsl( ) were added by C99.

The fabs( ) family of functions returns the absolute value of num.

A related function is abs( ).


Table of Contents
Previous Section Next Section