NAME
lround, lroundf, lroundl, llround, llroundf, llroundl - round to nearest integer, away from zero
SYNOPSIS
#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
DESCRIPTION
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.
RETURN VALUE
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.
ERRORS
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.
VERSIONS
These functions first appeared in glibc in version 2.1.
ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7). ┌──────────────────────────────────┬───────────────┬─────────┐ │Interface │ Attribute │ Value │ ├──────────────────────────────────┼───────────────┼─────────┤ │lround(), lroundf(), lroundl(), │ Thread safety │ MT-Safe │ │llround(), llroundf(), llroundl() │ │ │ └──────────────────────────────────┴───────────────┴─────────┘
CONFORMING TO
C99, POSIX.1-2001, POSIX.1-2008.
SEE ALSO
ceil(3), floor(3), lrint(3), nearbyint(3), rint(3), round(3)
COLOPHON
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 https://www.kernel.org/doc/man-pages/. 2016-03-15 LROUND(3)
More Linux Commands
manpages/psignal.3.html
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
manpages/glMultiTexCoord2iARB.3gl.html
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
manpages/TAILQ_ENTRY.3.html
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
manpages/gnutls_hmac_fast.3.html
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
manpages/date.1.html
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
manpages/tis-620.7.html
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
manpages/sane-coolscan3.5.html
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
manpages/PAM.8.html
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
manpages/tput.1.html
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
manpages/vmmouse_detect.1.html
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
manpages/XkbActionCtrls.3.html
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
manpages/XkbAddSymInterpret.3.html
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
