.\" -*- coding: UTF-8 -*- '\" t .\" Copyright (C) 2001 Andries Brouwer . .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH trunc 3 "20 ​​Julio 2023" "Páginas de manual de Linux 6.05.01" .SH NOMBRE trunc, truncf, truncl \- redondeo a entero, hacia cero .SH BIBLIOTECA Biblioteca Matemática (\fIlibm\fP, \fI\-lm\fP) .SH SINOPSIS .nf \fB#include \fP .PP \fBdouble trunc(double \fP\fIx\fP\fB);\fP \fBfloat truncf(float \fP\fIx\fP\fB);\fP \fBlong double truncl(long double \fP\fIx\fP\fB);\fP .fi .PP .RS -4 Requisitos de Macros de Prueba de Características para glibc (véase \fBfeature_test_macros\fP(7)): .RE .PP \fBtrunc\fP(), \fBtruncf\fP(), \fBtruncl\fP(): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L .fi .SH DESCRIPCIÓN These functions round \fIx\fP to the nearest integer value that is not larger in magnitude than \fIx\fP. .SH "VALOR DEVUELTO" These functions return the rounded integer value, in floating format. .PP Si \fIx\fP es entero, infinito o NaN, se devuelve \fIx\fP tal cual. .SH ERRORES No suceden errores. .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interfaz Atributo Valor T{ .na .nh \fBtrunc\fP(), \fBtruncf\fP(), \fBtruncl\fP() T} Seguridad del hilo Multi\-hilo seguro .TE .sp 1 .SH ESTÁNDARES C11, POSIX.1\-2008. .SH HISTORIAL glibc 2.1. C99, POSIX.1\-2001. .SH NOTAS The integral value returned by these functions may be too large to store in an integer type (\fIint\fP, \fIlong\fP, 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. .SH "VÉASE TAMBIÉN" \fBceil\fP(3), \fBfloor\fP(3), \fBlrint\fP(3), \fBnearbyint\fP(3), \fBrint\fP(3), \fBround\fP(3) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Miguel Pérez Ibars . .PP Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. .PP Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org .ME .