home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
xbase
/
library
/
clipper
/
rettig
/
source
/
flr.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-10-21
|
484b
|
28 lines
/*********
*
* FLR.C
*
* by Tom Rettig
* modified by Leonard Zerman
*
* Placed in the public domain by Tom Rettig Associates, 10/22/1990.
*
* Syntax: FLR( <expN> )
* Return: Integer just below <expN>.
* If no decimal value, integer equal to <expN>.
*********/
#include "trlib.h"
TRTYPE flr()
{
double num, ret;
if ( PCOUNT == 1 && ISNUM(1) )
{
_retnd(_tr_floor(_parnd(1)));
}
else
_retnd(ERROR); /* 0 value */
}