Provided by: manpages-es-dev_4.27.0-1_all bug

NOMBRE

       lround, lroundf, lroundl, llround, llroundf, llroundl - redondean al entero más cercano

BIBLIOTECA

       Biblioteca Matemática (libm, -lm)

SINOPSIS

       #include <math.h>

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

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

   Requisitos de Macros de Prueba de Características para glibc (véase feature_test_macros(7)):

       A continuación se muestran todas las funciones:
           _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L

DESCRIPCIÓN

       These functions round their argument to the nearest integer value, rounding halfway cases 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.

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 cómo es posible conocer si se ha producido algún 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 explicación de los términos usados en esta sección, véase attributes(7).
       ┌──────────────────────────────────────────────────────────────┬────────────────────┬───────────────────┐
       │ InterfazAtributoValor             │
       ├──────────────────────────────────────────────────────────────┼────────────────────┼───────────────────┤
       │ lround(), lroundf(), lroundl(), llround(), llroundf(),       │ Seguridad del hilo │ Multi-hilo seguro │
       │ llroundl()                                                   │                    │                   │
       └──────────────────────────────────────────────────────────────┴────────────────────┴───────────────────┘

ESTÁNDARES

       C11, POSIX.1-2008.

HISTORIAL

       glibc 2.1.  C99, POSIX.1-2001.

VÉASE TAMBIÉN

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

TRADUCCIÓN

       La  traducción  al  español de esta página del manual fue creada por Juan Piernas <piernas@ditec.um.es> y
       Marcos Fouces <marcos@debian.org>

       Esta traducción es documentación libre;  lea  la  GNU General Public License Version 3  o  posterior  con
       respecto a las condiciones de copyright.  No existe NINGUNA RESPONSABILIDAD.

       Si  encuentra  algún  error  en  la  traducción  de esta página del manual, envíe un correo electrónico a
       debian-l10n-spanish@lists.debian.org.

Páginas de Manual de Linux 6.9.1                   2 Mayo 2024                                         lround(3)