home *** CD-ROM | disk | FTP | other *** search
- /*********
- *
- * CEILING.C
- *
- * by Tom Rettig
- * modified by Leonard Zerman
- *
- * Placed in the public domain by Tom Rettig Associates, 10/22/1990.
- *
- * Syntax: CEILING( <expN> )
- * Return: Integer just above <expN>.
- * If no decimal value, integer equal to <expN>.
- *********/
-
- #include "trlib.h"
-
- TRTYPE ceiling()
- {
- if ( PCOUNT == 1 && ISNUM(1) )
- _retnd(_tr_ceil( _parnd(1)));
- else
- _retnd(ERROR); /* error return 0 */
- }
-