.\" -*- 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 lround 3 "20 julho 2023" "Linux man\-pages 6.05.01" .SH NOME lround, lroundf, lroundl, llround, llroundf, llroundl \- arredonda para o inteiro mais próximo .SH BIBLIOTECA Biblioteca matemática (\fIlibm\fP, \fI\-lm\fP) .SH SINOPSE .nf \fB#include \fP .PP \fBlong lround(double \fP\fIx\fP\fB);\fP \fBlong lroundf(float \fP\fIx\fP\fB);\fP \fBlong lroundl(long double \fP\fIx\fP\fB);\fP .PP \fBlong long llround(double \fP\fIx\fP\fB);\fP \fBlong long llroundf(float \fP\fIx\fP\fB);\fP \fBlong long llroundl(long double \fP\fIx\fP\fB);\fP .fi .PP .RS -4 Requisitos de macro de teste de recursos para o glibc (consulte \fBfeature_test_macros\fP(7)): .RE .PP Todas as funções mostradas acima: .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L .fi .SH DESCRIÇÃO Essas funções arredondam seu argumento para o valor inteiro mais próximo, arredondando os casos intermediários para longe de zero, independentemente da direção atual do arredondamento (consulte \fBfenv\fP(3)). .PP Observe que, ao contrário das funções \fBround\fP(3) e \fBceil\fP(3), o tipo de retorno destas funções difere daquele de seus argumentos. .SH "VALOR DE RETORNO" Estas funções retornar um valor inteiro arredondado. .PP .\" The return value is -(LONG_MAX - 1) or -(LLONG_MAX -1) Se \fIx\fP for um NaN ou infinito, ou o valor arredondado for muito grande para ser armazenado em um \fIlong\fP (\fIlong long\fP no caso das funções \fBll*\fP), então um domínio ocorre um erro e o valor de retorno não é especificado. .SH ERROS Consulte \fBmath_error\fP(7) para obter informações sobre como determinar se ocorreu um erro ao chamar essas funções. .PP Os seguintes erros podem ocorrer: .TP Domain error: \fIx\fP is a NaN or infinite, or the rounded value is too large .\" .I errno .\" is set to .\" .BR EDOM . Uma exceção de ponto flutuante inválida (\fBFE_INVALID\fP) é levantada. .PP .\" FIXME . Is it intentional that these functions do not set errno? .\" Bug raised: https://www.sourceware.org/bugzilla/show_bug.cgi?id=6797 Estas funções não definem \fIerrno\fP. .SH ATRIBUTOS Para uma explicação dos termos usados nesta seção, consulte \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interface Atributo Valor T{ .na .nh \fBlround\fP(), \fBlroundf\fP(), \fBlroundl\fP(), \fBllround\fP(), \fBllroundf\fP(), \fBllroundl\fP() T} Thread safety MT\-Safe .TE .sp 1 .SH PADRÕES C11, POSIX.1\-2008. .SH HISTÓRICO glibc 2.1. C99, POSIX.1\-2001. .SH "VEJA TAMBÉM" \fBceil\fP(3), \fBfloor\fP(3), \fBlrint\fP(3), \fBnearbyint\fP(3), \fBrint\fP(3), \fBround\fP(3) .PP .SH TRADUÇÃO A tradução para português brasileiro desta página man foi criada por Mila , André Luiz Fassone e Rafael Fontenelle . . .PP Esta tradução é uma documentação livre; leia a .UR https://www.gnu.org/licenses/gpl-3.0.html Licença Pública Geral GNU Versão 3 .UE ou posterior para as condições de direitos autorais. Nenhuma responsabilidade é aceita. .PP Se você encontrar algum erro na tradução desta página de manual, envie um e-mail para .MT debian-l10n-portuguese@lists.debian.org a lista de discussão de tradutores .ME .