Provided by: manpages-pt-br-dev_4.18.1-1_all bug

NOME

       floor, floorf, floorl - maior valor inteiro não maior que um argumento

BIBLIOTECA

       Biblioteca matemática (libm, -lm)

SINOPSE

       #include <math.h>

       double floor(double x);
       float floorf(float x);
       long double floorl(long double x);

   Requisitos de macro de teste de recursos para o glibc (consulte feature_test_macros(7)):

       floorf(), floorl():
           _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
               || /* Desde o glibc 2.19: */ _DEFAULT_SOURCE
               || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE

DESCRIÇÃO

       Esta função retorna o maior valor inteiro não maior que x.

       Por exemplo, floor(0.5) é 0.0 e floor(-0.5) é -1.0.

VALOR DE RETORNO

       Estas funções retorna o piso de x.

       Se x é inteiro, +0, -0, NaN ou infinito, o próprio x é retornado.

ERROS

       Ocorre  nenhum  erro.  POSIX.1-2001  documenta  um  erro  de  intervalo para estouros, mas
       consulte NOTAS.

ATRIBUTOS

       Para uma explicação dos termos usados nesta seção, consulte attributes(7).

       ┌───────────────────────────────────────────────────────────────┬───────────────┬─────────┐
       │InterfaceAtributoValor   │
       ├───────────────────────────────────────────────────────────────┼───────────────┼─────────┤
       │floor(), floorf(), floorl()                                    │ Thread safety │ MT-Safe │
       └───────────────────────────────────────────────────────────────┴───────────────┴─────────┘

PADRÕES

       C99, POSIX.1-2001, POSIX.1-2008.

       A variante retornando double também está em conformidade com SVr4, 4.3BSD.

NOTAS

       SUSv2 and POSIX.1-2001 contain text about overflow (which might set errno  to  ERANGE,  or
       raise  an  FE_OVERFLOW 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).)

VEJA TAMBÉM

       ceil(3), lrint(3), nearbyint(3), rint(3), round(3), trunc(3)

TRADUÇÃO

       A tradução para português brasileiro desta página man  foi  criada  por  Rubens  de  Jesus
       Nogueira   <darkseid99@usa.net>,  André  Luiz  Fassone  <lonely_wolf@ig.com.br>  e  Rafael
       Fontenelle <rafaelff@gnome.org>.

       Esta tradução é uma documentação  livre;  leia  a  Licença  Pública  Geral  GNU  Versão  3
       ⟨https://www.gnu.org/licenses/gpl-3.0.html⟩  ou  posterior  para  as condições de direitos
       autorais.  Nenhuma responsabilidade é aceita.

       Se você encontrar algum erro na tradução desta página de manual, envie um  e-mail  para  a
       lista de discussão de tradutores ⟨debian-l10n-portuguese@lists.debian.org⟩.