.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 2001 Andries Brouwer . .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk .\" .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH round 3 "16 juin 2024" "Pages du manuel de Linux 6.9.1" .SH NOM round, roundf, roundl \- Arrondir à l'entier le plus proche en s'éloignant de zéro .SH BIBLIOTHÈQUE Bibliothèque de math (\fIlibm\fP, \fI\-lm\fP) .SH SYNOPSIS .nf \fB#include \fP .P \fBdouble round(double \fP\fIx\fP\fB);\fP \fBfloat roundf(float \fP\fIx\fP\fB);\fP \fBlong double roundl(long double \fP\fIx\fP\fB);\fP .fi .P .RS -4 Exigences de macros de test de fonctionnalités pour la glibc (consulter \fBfeature_test_macros\fP(7)) : .RE .P \fBround\fP(), \fBroundf\fP(), \fBroundl\fP() : .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L .fi .SH DESCRIPTION Ces fonctions arrondissent leur \fIx\fP à l'entier le plus proche, en s'éloignant de zéro (sans tenir compte de la direction d'approximation en cours, consultez \fBfenv\fP(3)), à la différence de l'arrondi vers l'entier pair le plus proche comme \fBrint\fP(3). .P Par exemple, \fIround(0,5)\fP vaut 1,0 et \fIround(\-0,5)\fP vaut \-1,0. .SH "VALEUR RENVOYÉE" Ces fonctions renvoient la valeur entière arrondie. .P Si \fIx\fP est un nombre entier, +0, \-0, NaN ou une valeur infinie, la valeur \fIx\fP elle\-même est renvoyée. .SH ERREURS No errors occur. .SH ATTRIBUTS Pour une explication des termes utilisés dans cette section, consulter \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interface Attribut Valeur T{ .na .nh \fBround\fP(), \fBroundf\fP(), \fBroundl\fP() T} Sécurité des threads MT\-Safe .TE .SH STANDARDS C11, POSIX.1\-2008. .SH HISTORIQUE glibc 2.1. C99, POSIX.1\-2001. .P .\" The POSIX.1-2001 APPLICATION USAGE SECTION discusses this point. POSIX.1\-2001 contains text about overflow (which might set \fIerrno\fP to \fBERANGE\fP, or raise an \fBFE_OVERFLOW\fP exception). In practice, the result cannot overflow on any current machine, so this error\-handling stuff was just nonsense. (More precisely, overflow can happen only when the maximum value of the exponent is smaller than the number of mantissa bits. For the IEEE\-754 standard 32\-bit and 64\-bit floating\-point numbers the maximum value of the exponent is 127 (respectively, 1023), and the number of mantissa bits including the implicit bit is 24 (respectively, 53).) This was removed in POSIX.1\-2008. .P Si vous voulez stocker la valeur arrondie dans un type entier, vous devriez probablement utiliser une des fonctions décrites dans \fBlround\fP(3) à la place. .SH "VOIR AUSSI" \fBceil\fP(3), \fBfloor\fP(3), \fBlround\fP(3), \fBnearbyint\fP(3), \fBrint\fP(3), \fBtrunc\fP(3) .PP .SH TRADUCTION La traduction française de cette page de manuel a été créée par Christophe Blaess , Stéphan Rafin , Thierry Vignaud , François Micaux, Alain Portal , Jean-Philippe Guérard , Jean-Luc Coulon (f5ibh) , Julien Cristau , Thomas Huriaux , Nicolas François , Florentin Duneau , Simon Paillard , Denis Barbier , David Prévot et Cédric Boutillier . .PP Cette traduction est une documentation libre ; veuillez vous reporter à la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License version 3 .UE concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITÉ LÉGALE. .PP Si vous découvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message à .MT debian-l10n-french@lists.debian.org .ME .