hpux man page for trunc

Query: trunc

OS: hpux

Section: 3m

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

trunc(3M)																 trunc(3M)

NAME
trunc(), truncf(), truncl(), truncw(), truncq() - truncation functions
SYNOPSIS
HP Integrity Server Only
DESCRIPTION
The function rounds its argument to the integral value, in floating-point format, nearest to but no larger in magnitude than the argument. Integrity Server Only is a version of it takes a argument and returns a result. is a version of it takes a argument and returns a result. is an version of it takes an argument and returns an result. is equivalent to on HP-UX systems.
USAGE
To use these functions, compile either with the default option or with the and options. To use (for Integrity servers) or compile also with the option. To use these functions, make sure your program includes Link in the math library by specifying on the compiler or linker command line. For more information, see the at the following site:
RETURN VALUE
If x is returns x. If x is NaN, returns NaN. may raise the inexact exception if x is non-integral and finite.
ERRORS
No errors are defined.
SEE ALSO
ceil(3M), floor(3M), fabs(3M), fmod(3M), fegetround(3M), fesetround(3M), lrint(3M), llrint(3M), lround(3M), llround(3M), rint(3M), round(3M), math(5), fenv(5).
STANDARDS CONFORMANCE
: ISO/IEC C99 (including Annex F, ``IEC 60559 floating-point arithmetic'') trunc(3M)
Related Man Pages
ldexpf(3m) - hpux
nearbyint(3m) - hpux
nearbyintf(3m) - hpux
nearbyintq(3m) - hpux
rintf(3m) - hpux
Similar Topics in the Unix Linux Community
Loop through and truncate tables
how to run cron job to truncate database table
"Processes" truncated on Solaris
Truncate file name to 40 characters
How to truncate a string to x number characters?