BOOTSTRAP (klibm) functions


LIBRARY ROUTINE

ktrunc - truncate a number

LIBRARY CALL

double ktrunc(double x)

INPUT

OUTPUT

none

RETURN VALUE

returns the integral component of the iput argument

DESCRIPTION

The ktrunc function truncates a double precision value by removing its fractional component.

ktrunc is not a POSIX function, but is implemented in a few BSD math libraries. If it is implemented for the current architecture in libm.a, then this is simply a macro to trunc, otherwise ktrunc is a macro to the Khoros portable version of trunc.

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.