abs(2) plan9 man page | unix.com

Man Page: abs

Operating Environment: plan9

Section: 2

ABS(2)								System Calls Manual							    ABS(2)

NAME
abs, labs - integer absolute values
SYNOPSIS
#include <u.h> #include <libc.h> int abs(int a) long labs(long a)
DESCRIPTION
Abs returns the absolute value of integer a, and labs does the same for a long.
SOURCE
/sys/src/libc/port/abs.c
SEE ALSO
floor(2) for fabs
DIAGNOSTICS
Abs and labs return the most negative integer or long when the true result is unrepresentable. ABS(2)
Related Man Pages
llabs(3) - redhat
abs(3) - redhat
imaxabs(3) - centos
llabs(3) - centos
abs(3) - opendarwin
Similar Topics in the Unix Linux Community
Extracting parts from an absolute path
abstract.sh
Absolute value function
[Solved] Insert tabs as delimiter
Sorry for the absence