*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: itrunc | Section: 3 | Source: Digital UNIX | File: itrunc.3.gz
itrunc(3) Library Functions Manual itrunc(3) NAME itrunc, uitrunc - Truncate a floating-point number LIBRARY Standard C Library (libc.a) SYNOPSIS int itrunc( double x); unsigned int uitrunc( double x); DESCRIPTION The itrunc function returns the signed integer nearest to the double- precision floating value x in the direction of 0.0. This effectively truncates x by discarding its fraction component. The uitrunc func- tion also truncates the double x, but returns an unsigned integer value. If x is a NaN or a negative value that exceeds the size of a signed in- teger, itrunc returns INT_MIN. If x is a positive value that exceeds the size of a signed integer, itrunc returns INT_MAX. If x is a NaN or a negative value that exceeds the size of an unsigned integer, uitrunc returns a zero. If x is a positive value that ex- ceeds the size of an unsigned integer, itrunc returns UINT_MAX. RELATED INFORMATION Files: limits.h, math.h, float.h, fp.h, machine/fpu.h. IEEE Standard for Binary Floating-Point Arithmetic delim off itrunc(3)

Navigation Options