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