home *** CD-ROM | disk | FTP | other *** search
- /*********
- * 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 */
-