BOOTSTRAP (klibm) functions
LIBRARY ROUTINE
kmodf - compute the fractional component of the argument.
LIBRARY CALL
double kmodf(
double x,
double *i)
INPUT
- x - input argument to separate into
integral and fractional components.
OUTPUT
- i - the integral part of the input argument
RETURN VALUE
the fractional component of the input argument.
DESCRIPTION
The kmodf function computes the fractional
and integral part of the double precision input argument x.
After decomposing the input argument it returns the
fractional part and places
the integral part in the argument i.
This is provided in all POSIX and X/OPEN
compliant C math libraries. Currently
kmodf is simply a macro to modf 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.