home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
xbase
/
library
/
clipper
/
rettig
/
source
/
ceiling.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-10-21
|
467b
|
24 lines
/*********
*
* 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 */
}