1fabs(3M)                Mathematical Library Functions                fabs(3M)
2
3
4

NAME

6       fabs, fabsf, fabsl - absolute value function
7

SYNOPSIS

9       c99 [ flag... ] file... -lm [ library... ]
10       #include <math.h>
11
12       double fabs(double x);
13
14
15       float fabsf(float x);
16
17
18       long double fabsl(long double x);
19
20

DESCRIPTION

22       These functions compute the absolute value of x, |x|.
23

RETURN VALUES

25       Upon  successful  completion, these functions return the absolute value
26       of x.
27
28
29       If x is NaN, a NaN is returned.
30
31
32       If x is ±0, +0 is returned.
33
34
35       If x is ±Inf, +Inf is returned.
36

ERRORS

38       No errors are defined.
39

ATTRIBUTES

41       See attributes(5) for descriptions of the following attributes:
42
43
44
45
46       ┌─────────────────────────────┬─────────────────────────────┐
47       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
48       ├─────────────────────────────┼─────────────────────────────┤
49       │Interface Stability          │Standard                     │
50       ├─────────────────────────────┼─────────────────────────────┤
51       │MT-Level                     │MT-Safe                      │
52       └─────────────────────────────┴─────────────────────────────┘
53

SEE ALSO

55       isnan(3M), math.h(3HEAD), attributes(5), standards(5)
56
57
58
59SunOS 5.11                        12 Jul 2006                         fabs(3M)
Impressum