trunc(3) Library Functions Manual trunc(3) NOMBRE trunc, truncf, truncl - redondeo a entero, hacia cero BIBLIOTECA Biblioteca Matematica (libm, -lm) SINOPSIS #include double trunc(double x); float truncf(float x); long double truncl(long double x); Requisitos de Macros de Prueba de Caracteristicas para glibc (vease feature_test_macros(7)): trunc(), truncf(), truncl(): _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L DESCRIPCION These functions round x to the nearest integer value that is not larger in magnitude than x. VALOR DEVUELTO These functions return the rounded integer value, in floating format. Si x es entero, infinito o NaN, se devuelve x tal cual. ERRORES No suceden errores. ATRIBUTOS Para obtener una explicacion de los terminos usados en esta seccion, vease attributes(7). +-----------------------------+--------------------+-------------------+ |Interfaz | Atributo | Valor | +-----------------------------+--------------------+-------------------+ |trunc(), truncf(), truncl() | Seguridad del hilo | Multi-hilo seguro | +-----------------------------+--------------------+-------------------+ ESTANDARES C11, POSIX.1-2008. HISTORIAL glibc 2.1. C99, POSIX.1-2001. NOTAS The integral value returned by these functions may be too large to store in an integer type (int, long, etc.). To avoid an overflow, which will produce undefined results, an application should perform a range check on the returned value before assigning it to an integer type. VEASE TAMBIEN ceil(3), floor(3), lrint(3), nearbyint(3), rint(3), round(3) TRADUCCION La traduccion al espanol de esta pagina del manual fue creada por Miguel Perez Ibars 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 trunc(3)