BOOTSTRAP (klibm) functions
LIBRARY ROUTINE
kfloor - compute the floor of the argument.
LIBRARY CALL
double kfloor(double x)
INPUT
- x - number to calculate floor of.
OUTPUT
none
RETURN VALUE
the double precision floor of the input argument.
DESCRIPTION
The kfloor function computes the largest integral
value (largest integer) less than or equal to the
input argument and returns it as a double.
This is provided in all POSIX and X/OPEN
compliant C math libraries. Currently
kfloor is simply a macro to floor because
Khoros does not run on any machine whose
math library does not include this function.
If Khoros is ported to a machine without this
function then a replacement will be written.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
none
MODIFICATION
none
FILES
$BOOTSTRAP/objects/library/klibm/src/klibm.c
SEE ALSO
klibm(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.