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


   #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);

   Link with -lm.

   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):

   All functions shown above:
       _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L


   These functions round their argument  to  the  nearest  integer  value,
   rounding  away  from zero, regardless of the current rounding direction
   (see fenv(3)).

   Note that unlike the round(3) and ceil(3), functions, the  return  type
   of these functions differs from that of their arguments.


   These functions return the rounded integer value.

   If  x  is a NaN or an infinity, or the rounded value is too large to be
   stored in a long (long long in the case of the ll* functions),  then  a
   domain error occurs, and the return value is unspecified.


   See  math_error(7) for information on how to determine whether an error
   has occurred when calling these functions.

   The following errors can occur:

   Domain error: x is a NaN or infinite, or the rounded value is too large
          An invalid floating-point exception (FE_INVALID) is raised.

   These functions do not set errno.


   These functions first appeared in glibc in version 2.1.


   For  an  explanation  of  the  terms  used   in   this   section,   see

   │InterfaceAttributeValue   │
   │lround(), lroundf(), lroundl(),   │ Thread safety │ MT-Safe │
   │llround(), llroundf(), llroundl() │               │         │


   C99, POSIX.1-2001, POSIX.1-2008.


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


   This  page  is  part of release 4.09 of the Linux man-pages project.  A
   description of the project, information about reporting bugs,  and  the
   latest     version     of     this    page,    can    be    found    at

                              2016-03-15                         LROUND(3)

More Linux Commands

psignal(3) - print signal message - Linux manual page.......
The psignal() function displays a message on stderr consisting of the string s, a colon, a space, a string describing the signal number sig, and a trailing newl

glMultiTexCoord2iARB(3gl) - set the current texture coordina
glMultiTexCoordARB specifies texture coordinates in one, two, three, or four dimensions. glMultiTexCoord1ARB sets the current texture coordinates to (s, 0, 0, 1

TAILQ_ENTRY(3) implementations of lists, tail queues, and ci
These macros define and operate on three types of data structures: lists, tail queues, and circular queues. All three structures support the following functiona

gnutls_hmac_fast(3) - API function - Linux manual page......
gnutls_hmac_fast.3 - This convenience function will hash the given data and return output on a single call. RETURNS Zero or a negative error code on error. SINC

date(1) - print or set the system date and time (Man Page)
Display the current time in the given FORMAT, or set the system date. Mandatory arguments to long options are mandatory for short options too. -d, --date=STRING

iso-8859-11(7) - ISO 8859-11 character set encoded in octal,
The ISO 8859 standard includes several 8-bit extensions to the ASCII character set (also known as ISO 646-IRV). ISO 8859-11 encodes the characters used in the T

sane-coolscan3(5) - SANE backend for Nikon Coolscan film sca
The sane-coolscan3 library implements a SANE (Scanner Access Now Easy) backend that provides access to Nikon Coolscan film scanners. Some functions of this back

PAM(8) - Pluggable Authentication Modules for Linux.........
PAM.8 - This manual is intended to offer a quick introduction to Linux-PAM. For more information the reader is directed to the Linux-PAM system administrators g

tput(1) - initialize a terminal or query terminfo database
The tput utility uses the terminfo database to make the values of terminal-dependent capabilities and information available to the shell (see sh(1)), to initial

vmmouse_detect(1) - VMware mouse device autodetection tool
vmmouse_detect is a tool for detecting if running in a VMware environment where vmmouse is used. It exits with a 0 return value if the vmmouse client is enabled

XkbActionCtrls(3) - Returns the ctrls fields of act converte
XkbActionCtrls.3 - Actions associated with the XkbCtrlsAction structure change the state of the boolean controls. The type field can have any one of the values

XkbAddSymInterpret(3) - Add a symbol interpretation to the l
XkbAddSymInterpret adds si to the list of symbol interpretations in xkb. If updateMap is True, it (re)applies the compatibility map to all of the keys on the ke

We can't live, work or learn in freedom unless the software we use is free.