lrint(3) Library Functions Manual lrint(3) NOMBRE lrint, lrintf, lrintl, llrint, llrintf, llrintl - redondean al entero mas cercano BIBLIOTECA Biblioteca Matematica (libm, -lm) SINOPSIS #include long lrint(double x); long lrintf(float x); long lrintl(long double x); long long llrint(double x); long long llrintf(float x); long long llrintl(long double x); Requisitos de Macros de Prueba de Caracteristicas para glibc (vease feature_test_macros(7)): A continuacion se muestran todas las funciones: _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L DESCRIPCION These functions round their argument to the nearest integer value, using the current rounding direction (see fesetround(3)). Note that unlike the rint(3) family of functions, the return type of these functions differs from that of their arguments. VALOR DEVUELTO Estas funciones devuelven el valor del entero redondeado. 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. ERRORES Consulte math_error(7) para saber como es posible conocer si se ha producido algun error al invocar estas funciones. Puede ocurrir los siguientes errores Error de dominio:x es Nan o infinito, o bien el valor redondeado es demasiado grande. An invalid floating-point exception (FE_INVALID) is raised. Estas funciones no definen errno. ATRIBUTOS Para obtener una explicacion de los terminos usados en esta seccion, vease attributes(7). +-----------------------------+--------------------+-------------------+ |Interfaz | Atributo | Valor | +-----------------------------+--------------------+-------------------+ |lrint(), lrintf(), lrintl(), | Seguridad del hilo | Multi-hilo seguro | |llrint(), llrintf(), | | | |llrintl() | | | +-----------------------------+--------------------+-------------------+ ESTANDARES C11, POSIX.1-2008. HISTORIAL glibc 2.1. C99, POSIX.1-2001. VEASE TAMBIEN ceil(3), floor(3), lround(3), nearbyint(3), rint(3), round(3) TRADUCCION La traduccion al espanol de esta pagina del manual fue creada por Miguel Perez Ibars y Marcos Fouces Esta traduccion es documentacion libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. Si encuentra algun error en la traduccion de esta pagina del manual, envie un correo electronico a . Paginas de manual de Linux 6.06 31 Octubre 2023 lrint(3)