*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> trunc (3)              
Title
Content
Arch
Section
 

TRUNC(3)

Contents


NAME    [Toc]    [Back]

       trunc, truncf, truncl - round to interger, towards zero

SYNOPSIS    [Toc]    [Back]

       #include <math.h>

       double trunc(double x);
       float truncf(float x);
       long double truncl(long double x);

DESCRIPTION    [Toc]    [Back]

       These  functions  round x to the nearest integer not larger in absolute
       value.

RETURN VALUE    [Toc]    [Back]

       The rounded integer value.  If x is integral, infinite or NaN, x itself
       is returned.

ERRORS    [Toc]    [Back]

       None.

CONFORMING TO    [Toc]    [Back]

       C99.

SEE ALSO    [Toc]    [Back]

      
      
       ceil(3), floor(3), lrint(3), nearbyint(3), rint(3), round(3)



				  2001-05-31			      TRUNC(3)
[ Back ]
 Similar pages
Name OS Title
ceil Tru64 Round floatingpoint
trunc Tru64 Round floatingpoint
rint Tru64 Round floatingpoint
nint Tru64 Round floatingpoint
oclock Tru64 round X clock
modf Tru64 Round floatingpoint
floor Tru64 Round floatingpoint
lrint Linux round to nearest integer
round Linux round to nearest integer, away from zero
rint Linux round to nearest integer
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service