Sun Microsystems Logo
Products and Services
 
Support and Training
 
 

A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z  
 
Mathematical Library Functionsfabs(3M)


NAME

 fabs - absolute value function

SYNOPSIS

 
cc [ flag ... ] file ... -lm [ library ... ]
#include <math.h>
double fabs(double x);

DESCRIPTION

 

The fabs() function computes the absolute value of x, |x|.


RETURN VALUES

 

Upon successful completion, fabs() returns the absolute value of x.

If x is NaN, NaN is returned.


ATTRIBUTES

 

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
MT-LevelMT-Safe

SEE ALSO

 

isnan(3M), attributes(5)



SunOS 5.9Go To TopLast Changed 29 Dec 1996