Provided by: manpages-es-dev_4.22.0-1_all 

NOMBRE
fmod, fmodf, fmodl - función resto en coma flotante
BIBLIOTECA
Biblioteca Matemática (libm, -lm)
SINOPSIS
#include <math.h> double fmod(double x, double y); float fmodf(float x, float y); long double fmodl(long double x, long double y); Requisitos de Macros de Prueba de Características para glibc (véase feature_test_macros(7)): fmodf(), fmodl(): _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || /* Desde glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
DESCRIPCIÓN
Estas funciones calculan el resto de la división de x entre y. El valor devuelto es x - n * y, donde n es el cociente de x / y, redondeado a un entero hacia cero.
VALOR DEVUELTO
On success, these functions return the value x - n*y, for some integer n, such that the returned value has the same sign as x and a magnitude less than the magnitude of y. Si x o y es un NaN, NaN es devuelto. Si x es infinito, ocurre un error de dominio y NaN es devuelto. Si y es cero, sucede un error de dominio y se devuelve NaN. Si x es +0 (-0) y y es distinto de cero, se devuelve +0 (-0).
ERRORES
Consulte math_error(7) para saber cómo es posible conocer si se ha producido algún error al invocar estas funciones. Puede ocurrir los siguientes errores Error de dominio: x es infinito errno is set to EDOM (but see BUGS). An invalid floating-point exception (FE_INVALID) is raised. Error de dominio: y es cero. errno is set to EDOM. An invalid floating-point exception (FE_INVALID) is raised.
ATRIBUTOS
Para obtener una explicación de los términos usados en esta sección, véase attributes(7). ┌────────────────────────────────────────────────┬────────────────────┬───────────────────┐ │Interfaz │ Atributo │ Valor │ ├────────────────────────────────────────────────┼────────────────────┼───────────────────┤ │fmod(), fmodf(), fmodl() │ Seguridad del hilo │ Multi-hilo seguro │ └────────────────────────────────────────────────┴────────────────────┴───────────────────┘
ESTÁNDARES
C11, POSIX.1-2008.
HISTORIAL
C99, POSIX.1-2001. The variant returning double also conforms to SVr4, 4.3BSD, C89.
ERRORES
Before glibc 2.10, the glibc implementation did not set errno to EDOM when a domain error occurred for an infinite x.
VÉASE TAMBIÉN
remainder(3)
TRADUCCIÓN
La traducción al español de esta página del manual fue creada por Gerardo Aburruzaga García <gerardo.aburruzaga@uca.es> y Marcos Fouces <marcos@debian.org> Esta traducción es documentación libre; lea la GNU General Public License Version 3 ⟨https://www.gnu.org/licenses/gpl-3.0.html⟩ o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a ⟨debian-l10n-spanish@lists.debian.org⟩.