fabs(), fabsf()

floating-point absolute value function 

Function


SYNOPSIS

#include <math.h>

double fabs(double x)

float fabsf(float x)


DESCRIPTION

The fabs() function computes the absolute value of a floating-point number x.

The fabsf() function is a single-precision version of fabs().


PARAMETERS

x 

Is a floating point value.


RETURN VALUES

The fabs() function returns the absolute value of x.

If x is NaN, NaN is returned.

If the result underflows, 0 is returned.


CONFORMANCE

fabs(): ANSI/ISO 9899-1990

fabsf(): PTC MKS Toolkit UNIX APIs extension


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
abs(), ceil(), floor(), ieee(), math(), rint()


PTC MKS Toolkit 10.4 Documentation Build 39.