.\" -*- coding: UTF-8 -*-
'\" t
.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
.\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
.\"     <mtk.manpages@gmail.com>
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
.\" References consulted:
.\"     Linux libc source code
.\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
.\"     386BSD man pages
.\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
.\" Modified 2002-07-27 by Walter Harms
.\" 	(walter.harms@informatik.uni-oldenburg.de)
.\"
.\"*******************************************************************
.\"
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
.TH fmod 3 "5 fevereiro 2023" "Linux man\-pages 6.03" 
.SH NOME
fmod, fmodf, fmodl \- função de resto de divisão para ponto flutuante
.SH BIBLIOTECA
Biblioteca matemática (\fIlibm\fP, \fI\-lm\fP)
.SH SINOPSE
.nf
\fB#include <math.h>\fP
.PP
\fBdouble fmod(double \fP\fIx\fP\fB, double \fP\fIy\fP\fB);\fP
\fBfloat fmodf(float \fP\fIx\fP\fB, float \fP\fIy\fP\fB);\fP
\fBlong double fmodl(long double \fP\fIx\fP\fB, long double \fP\fIy\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
\fBfmodf\fP(), \fBfmodl\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
These functions compute the floating\-point remainder of dividing \fIx\fP by
\fIy\fP.  The return value is \fIx\fP \- \fIn\fP * \fIy\fP, where \fIn\fP is the quotient of
\fIx\fP / \fIy\fP, rounded toward zero to an integer.
.SH "VALOR DE RETORNO"
On success, these functions return the value \fIx\fP\ \-\ \fIn\fP*\fIy\fP, for some
integer \fIn\fP, such that the returned value has the same sign as \fIx\fP and a
magnitude less than the magnitude of \fIy\fP.
.PP
If \fIx\fP or \fIy\fP is a NaN, a NaN is returned.
.PP
If \fIx\fP is an infinity, a domain error occurs, and a NaN is returned.
.PP
If \fIy\fP is zero, a domain error occurs, and a NaN is returned.
.PP
If \fIx\fP is +0 (\-0), and \fIy\fP is not zero, +0 (\-0) is returned.
.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 an infinity
\fIerrno\fP é definido com \fBEDOM\fP (mas veja BUGS). Uma exceção de ponto
flutuante inválido (\fBFE_INVALID\fP) é levantada.
.TP 
Domain error: \fIy\fP is zero
.\" POSIX.1 documents an optional underflow error, but AFAICT it doesn't
.\" (can't?) occur -- mtk, Jul 2008
\fIerrno\fP é definido com \fBEDOM\fP. Uma exceção de ponto flutuante inválida
(\fBFE_INVALID\fP) é levantada.
.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{
\fBfmod\fP(),
\fBfmodf\fP(),
\fBfmodl\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 BUGS
.\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=6784
Before glibc 2.10, the glibc implementation did not set \fIerrno\fP to \fBEDOM\fP
when a domain error occurred for an infinite \fIx\fP.
.SH "VEJA TAMBÉM"
\fBremainder\fP(3)
.PP
.SH TRADUÇÃO
A tradução para português brasileiro desta página man foi criada por
Rubens de Jesus Nogueira <darkseid99@usa.net>
e
André Luiz Fassone <lonely_wolf@ig.com.br>
.
.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 .