[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 1

fabsf, fabsl, or fabs Subroutine

Purpose

Determines the absolute value.

Syntax

#include <math.h>

float fabsf (x)
float x;

long double fabsl (x)
long double x;

double fabs (x)
double x;

Description

The fabsf, fabsl, and fabs subroutines compute the absolute value of the x parameter, |x|.

Parameters

x Specifies the value to be computed.

Return Values

Upon successful completion, the fabsf, fabsl, and fabs subroutines return the absolute value of x.

If x is NaN, a NaN is returned.

If x is ±0, +0 is returned.

If x is ±Inf, +Inf is returned.

Related Information

The class, _class, finite, isnan, or unordered Subroutines.

math.h in AIX 5L Version 5.2 Files Reference.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]