JMÉNO
- Provided by: manpages-cs-dev (Version: 4.32.4-1)
- Source: manpages-l10n
- Report a bug
Matematická knihovna (libm, -lm)
#include <math.h>
double remainder(double x, double y); float remainderf(float x, float y); long double remainderl(long double x, long double y);
/* Obsolete synonyms */ [[deprecated]] double drem(double x, double y); [[deprecated]] float dremf(float x, float y); [[deprecated]] long double dreml(long double x, long double y);
remainder():
_ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
|| _XOPEN_SOURCE >= 500
|| /* Od glibc 2.19: */ _DEFAULT_SOURCE
|| /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
remainderf(), remainderl():
_ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
|| /* Od glibc 2.19: */ _DEFAULT_SOURCE
|| /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
drem(), dremf(), dreml():
/* Od glibc 2.19: */ _DEFAULT_SOURCE
|| /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
These functions compute the remainder of dividing x by y. The return value is x-n*y, where n is the value x / y, rounded to the nearest integer. If the absolute value of x-n*y is 0.5, n is chosen to be even.
Tyto funkce nejsou ovlivněny aktuálním zaokrouhlovacím módem (viz fenv(3)).
Funkce drem() dělá přesně to samé.
On success, these functions return the floating-point remainder, x-n*y. If the return value is 0, it has the sign of x.
Je-li x nebo y NaN, je vráceno NaN.
Pokud je x nekonečno a y není NaN je vystavena doménová chyba a je vráceno NaN.
Pokud je y nula a x není NaN je vystavena doménová chyba a je vráceno NaN.
Pro více informací zda funkce při svém volání generovala chybu viz math_error(7).
Mohou se objevit následující chyby:
Vysvětlení pojmů použitých v této části viz attributes(7).
| Rozhraní | Atribut | Hodnota |
| drem(), dremf(), dreml(), remainder(), remainderf(), remainderl() | Zabezpečení vláken | MT-Safe |
Before glibc 2.15, the call
remainder(nan(""), 0);
returned a NaN, as expected, but wrongly caused a domain error. Since glibc 2.15, a silent NaN (i.e., no domain error) is returned.
Before glibc 2.15, errno was not set to EDOM for the domain error that occurs when x is an infinity and y is not a NaN.
Volání "remainder(29.0, 3.0)" vrací -1.
Překlad této příručky do češtiny vytvořili Pavel Heimlich <tropikhajma@gmail.com>
Tento překlad je bezplatná dokumentace; Přečtěte si GNU General Public License Version 3 nebo novější ohledně podmínek autorských práv. Neexistuje ŽÁDNÁ ODPOVĚDNOST.
Pokud narazíte na nějaké chyby v překladu této příručky, pošlete e-mail na adresu translation-team-cs@lists.sourceforge.net.