·  Home
+   man pages
 -> Linux -> FreeBSD -> OpenBSD -> NetBSD -> Tru64 Unix -> HP-UX 11i -> IRIX
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

man pages->NetBSD man pages -> abs (3)
 Title
 Content
 Arch
 Section All Sections 1 - General Commands 2 - System Calls 3 - Subroutines 4 - Special Files 5 - File Formats 6 - Games 7 - Macros and Conventions 8 - Maintenance Commands 9 - Kernel Interface n - New Commands

## ABS(3)

```
```

### NAME[Toc][Back]

```     abs - integer absolute value function
```

### LIBRARY[Toc][Back]

```     Standard C Library (libc, -lc)
```

### SYNOPSIS[Toc][Back]

```     #include <stdlib.h>

int
abs(int j);
```

### DESCRIPTION[Toc][Back]

```     The abs() function computes the absolute value of the integer j.
```

### RETURN VALUES[Toc][Back]

```     The abs() function returns the absolute value.
```

```     cabs(3), fabs(3), floor(3), hypot(3), labs(3), llabs(3), math(3)
```

### STANDARDS[Toc][Back]

```     The abs() function conforms to ANSI X3.159-1989 (``ANSI C'').
```

### BUGS[Toc][Back]

```     The absolute value of the most negative integer remains negative.

BSD                              June 4, 1993                              BSD
```
[ Back ]
Similar pages
 Name OS Title abs Linux compute the absolute value of an integer. abs IRIX return integer absolute value qabs OpenBSD return the absolute value of a quad integer llabs OpenBSD return the absolute value of a long integer labs NetBSD return the absolute value of a long integer labs FreeBSD return the absolute value of a long integer labs OpenBSD return the absolute value of a long integer qabs NetBSD return the absolute value of a quad integer floor IRIX floor, ceiling, remainder, absolute value, nearest integer, and truncation functions floor IRIX floor, ceiling, remainder, absolute value, nearest integer, and truncation functions