home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
xbase
/
library
/
clipper
/
rettig
/
source
/
abs.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-10-21
|
399b
|
21 lines
/*********
* ABS.C
* by Leonard Zerman
* Placed in the public domain by Tom Rettig Associates, 10/22/1990.
*
* Syntax: ABS( <expN> )
* Return: The absolute value of <expN>
* Note : Change negative number to positive.
********/
#include "trlib.h"
TRTYPE abs()
{
if ( PCOUNT==1 && ISNUM(1) )
_retnd(ABS(_parnd(1))) ;
else
_retnd( (double)ERROR ) ;
}
/* eof */