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

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

LROUND(3)

Contents


NAME    [Toc]    [Back]

       lround,	lroundf, lroundl, llround, llroundf, llroundl - round to nearest
 integer, away from zero

SYNOPSIS    [Toc]    [Back]

       #include <math.h>

       long int lround(double x);
       long int lroundf(float x);
       long int lroundl(long double x);

       long long int llround(double x);
       long long int llroundf(float x);
       long long int llroundl(long double x);

DESCRIPTION    [Toc]    [Back]

       These functions round their argument  to  the  nearest  integer	value,
       rounding  away from zero, regardless of the current rounding direction.
       If x is infinite or NaN, or if the rounded value is outside  the  range
       of  the return type, the numeric result is unspecified.	A domain error
       may occur if the magnitude of x is too large.

RETURN VALUE    [Toc]    [Back]

       The rounded integer value.

ERRORS    [Toc]    [Back]

       EDOM   The  magnitude  of  x  is  too  large  and  (math_errhandling  &
	      MATH_ERRNO) is non-zero.

CONFORMING TO    [Toc]    [Back]

       C99.

SEE ALSO    [Toc]    [Back]

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



				  2001-05-31			     LROUND(3)
[ Back ]
 Similar pages
Name OS Title
rint Linux round to nearest integer
lrint Linux round to nearest integer
round IRIX FORTRAN nearest integer functions
floor IRIX floor, ceiling, remainder, absolute value, nearest integer, and truncation functions
floor IRIX floor, ceiling, remainder, absolute value, nearest integer, and truncation functions
amax IRIX BLAS Maximum index functions FORTRAN 77 SYNOPSIS integer function idamax( n, x, incx ) integer incx, n double
nearest IRIX Returns the nearest different machine representable number in a given direction
DXmCSTextXYToPos Tru64 Retrieves (returns) the position in the text of the character nearest to a specified x and y positio...
wcstol IRIX convert wide character string to long integer, unsigned long integer, long long integer, unsigned long long in
trunc Linux round to interger, towards zero
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service