.\" -*- 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 ceil 3 "5 fevereiro 2023" "Linux man\-pages 6.03" .SH NOME ceil, ceilf, ceill \- funções de 'teto': menor valor inteiro maior ou igual que x .SH BIBLIOTECA Biblioteca matemática (\fIlibm\fP, \fI\-lm\fP) .SH SINOPSE .nf \fB#include \fP .PP \fBdouble ceil(double \fP\fIx\fP\fB);\fP \fBfloat ceilf(float \fP\fIx\fP\fB);\fP \fBlong double ceill(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 \fBceilf\fP(), \fBceill\fP(): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || /* Desde o glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi .SH DESCRIÇÃO Estas funções retornam o menor valor integral que não é menor que \fIx\fP. .PP Por exemplo, \fIceil(0.5)\fP é 1.0 e \fIceil(\-0.5)\fP é 0.0. .SH "VALOR DE RETORNO" Estas funções retornam o teto de \fIx\fP. .PP Se \fIx\fP é integral, +0, \-0, NaN ou infinito, o próprio \fIx\fP é retornado. .SH ERROS Ocorre nenhum erro. POSIX.1\-2001 documenta um erro de intervalo para estouros, mas consulte NOTAS. .SH ATRIBUTOS Para uma explicação dos termos usados nesta seção, consulte \fBattributes\fP(7). .ad l .nh .TS allbox; lbx lb lb l l l. Interface Atributo Valor T{ \fBceil\fP(), \fBceilf\fP(), \fBceill\fP() T} Thread safety MT\-Safe .TE .hy .ad .sp 1 .SH PADRÕES C99, POSIX.1\-2001, POSIX.1\-2008. .PP A variante retornando \fIdouble\fP também está em conformidade com SVr4, 4.3BSD. .SH NOTAS .\" The POSIX.1-2001 APPLICATION USAGE SECTION discusses this point. SUSv2 and POSIX.1\-2001 contain 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 is 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).) .PP O valor integral retornado por essas funções pode ser muito grande para armazenar em um tipo inteiro (\fIint\fP, \fIlong\fP etc.). Para evitar um estouro, que produzirá resultados indefinidos, um aplicativo deve executar uma verificação de intervalo no valor retornado antes de atribuí\-lo a um tipo inteiro. .SH "VEJA TAMBÉM" \fBfloor\fP(3), \fBlrint\fP(3), \fBnearbyint\fP(3), \fBrint\fP(3), \fBround\fP(3), \fBtrunc\fP(3) .PP .SH TRADUÇÃO A tradução para português brasileiro desta página man foi criada por Paulo César Mendes , 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 .