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

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

LRINT(3)

Contents


NAME    [Toc]    [Back]

       lrint,  lrintf,	lrintl,  llrint,  llrintf,  llrintl - round to nearest
       integer

SYNOPSIS    [Toc]    [Back]

       #include <math.h>

       long int lrint(double x);
       long int lrintf(float x);
       long int lrintl(long double x);

       long long int llrint(double x);
       long long int llrintf(float x);
       long long int llrintl(long double x);

DESCRIPTION    [Toc]    [Back]

       These functions round their argument  to  the  nearest  integer	value,
       using  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), lround(3), nearbyint(3), rint(3), round(3)



				  2001-05-31			      LRINT(3)
[ Back ]
 Similar pages
Name OS Title
lround Linux round to nearest integer, away from zero
round Linux round to nearest integer, away from zero
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