.\" -*- 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 floor 3 "5 fevereiro 2023" "Linux man\-pages 6.03" .SH NOME floor, floorf, floorl \- maior valor inteiro não maior que um argumento .SH BIBLIOTECA Biblioteca matemática (\fIlibm\fP, \fI\-lm\fP) .SH SINOPSE .nf \fB#include \fP .PP \fBdouble floor(double \fP\fIx\fP\fB);\fP \fBfloat floorf(float \fP\fIx\fP\fB);\fP \fBlong double floorl(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 \fBfloorf\fP(), \fBfloorl\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 Esta função retorna o maior valor inteiro não maior que \fIx\fP. .PP Por exemplo, \fIfloor(0.5)\fP é 0.0 e \fIfloor(\-0.5)\fP é \-1.0. .SH "VALOR DE RETORNO" Estas funções retorna o piso de \fIx\fP. .PP Se \fIx\fP é inteiro, +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{ \fBfloor\fP(), \fBfloorf\fP(), \fBfloorl\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).) .SH "VEJA TAMBÉM" \fBceil\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 Rubens de Jesus Nogueira , 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 .