.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk .\" .\" .\" 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 "20. července 2023" "Linux man\-pages 6.05.01" .SH JMÉNO fmod, fmodf, fmodl \- desetinná zbytková funkce .SH KNIHOVNA Matematická knihovna (\fIlibm\fP, \fI\-lm\fP) .SH POUŽITÍ .nf \fB#include \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 Požaduje množinu testovacích maker pro glibc (viz \fBfeature_test_macros\fP(7)): .RE .PP \fBfmodf\fP(), \fBfmodl\fP(): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || /* Od glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi .SH POPIS 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 "NÁVRATOVÉ HODNOTY" 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 Je\-li \fIx\fP nebo \fIy\fP NaN, je vráceno NaN. .PP If \fIx\fP is an infinity, a domain error occurs, and a NaN is returned. .PP Je\-li \fIy\fP nula, je nastavena chyba domény a je vráceno NaN. .PP Pokud je \fIx\fP +0 (\-0) a \fIy\fP není nula je vrácena hodnota +0(\-0). .SH "CHYBOVÉ STAVY" Pro více informací zda funkce při svém volání generovala chybu viz \fBmath_error\fP(7). .PP Mohou se objevit následující chyby: .TP Doménová chyba: \fIx\fP je nekonečno \fIerrno\fP je nastaveno na \fBEDOM\fP (viz CHYBY). Je signalizována výjimka plovoucí čárky (\fBFE_INVALID\fP). .TP Doménová chyba: \fIy\fP je nula .\" POSIX.1 documents an optional underflow error, but AFAICT it doesn't .\" (can't?) occur -- mtk, Jul 2008 \fIerrno\fP je nastaveno na \fBEDOM\fP. Je signalizována výjimka plovoucí čárky (\fBFE_INVALID\fP). .SH ATRIBUTY Vysvětlení pojmů použitých v této části viz \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Rozhraní Atribut Hodnota T{ .na .nh \fBfmod\fP(), \fBfmodf\fP(), \fBfmodl\fP() T} Thread safety MT\-Safe .TE .sp 1 .SH STANDARDY C11, POSIX.1\-2008. .SH HISTORIE C99, POSIX.1\-2001. .PP Varianta vracející \fIdouble\fP splňuje také SVr4 a 4.3BSD, C89. .SH CHYBY .\" https://www.sourceware.org/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 "DALŠÍ INFORMACE" \fBremainder\fP(3) .PP .SH PŘEKLAD Překlad této příručky do španělštiny vytvořili Pavel Heimlich . .PP Tento překlad je bezplatná dokumentace; Přečtěte si .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE nebo novější ohledně podmínek autorských práv. Neexistuje ŽÁDNÁ ODPOVĚDNOST. .PP Pokud narazíte na nějaké chyby v překladu této příručky, pošlete e-mail na adresu .MT translation-team-cs@lists.sourceforge.net .ME .