.\" -*- coding: UTF-8 -*- .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk .\" .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\" 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-08-10 Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" Modified 2003-11-18, 2004-10-05 aeb .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH REMAINDER 3 "9. června 2020" "" "Linux \- příručka programátora" .SH JMÉNO drem, dremf, dreml, remainder, remainderf, remainderl \- desetinný zbytek po dělení .SH POUŽITÍ .nf \fB#include \fP .PP /* Verze C99 */ \fBdouble remainder(double \fP\fIx\fP\fB, double \fP\fIy\fP\fB);\fP \fBfloat remainderf(float \fP\fIx\fP\fB, float \fP\fIy\fP\fB);\fP \fBlong double remainderl(long double \fP\fIx\fP\fB, long double \fP\fIy\fP\fB);\fP .PP /* Zastaralá synonyma */ \fBdouble drem(double \fP\fIx\fP\fB, double \fP\fIy\fP\fB);\fP \fBfloat dremf(float \fP\fIx\fP\fB, float \fP\fIy\fP\fB);\fP \fBlong double dreml(long double \fP\fIx\fP\fB, long double \fP\fIy\fP\fB);\fP .PP .fi Linkujte s \fI\-lm\fP. .PP .RS -4 Požaduje množinu testovacích maker pro glibc (viz \fBfeature_test_macros\fP(7)): .RE .PP .ad l \fBremainder\fP(): .RS 4 .\" || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L || _XOPEN_SOURCE\ >=\ 500 || /* Od glibc 2.19: */ _DEFAULT_SOURCE || /* Verze glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .RE .br \fBremainderf\fP(), \fBremainderl\fP(): .RS 4 _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L || /* Od glibc 2.19: */ _DEFAULT_SOURCE || /* Verze glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .RE .br \fBdrem\fP(), \fBdremf\fP(), \fBdreml\fP(): .RS 4 /* Od glibc 2.19: */ _DEFAULT_SOURCE || /* Verze Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .RE .ad b .SH POPIS These functions compute the remainder of dividing \fIx\fP by \fIy\fP. The return value is \fIx\fP\-\fIn\fP*\fIy\fP, where \fIn\fP is the value \fIx\ /\ y\fP, rounded to the nearest integer. If the absolute value of \fIx\fP\-\fIn\fP*\fIy\fP is 0.5, \fIn\fP is chosen to be even. .PP Tyto funkce nejsou ovlivněny aktuálním zaokrouhlovacím módem (viz \fBfenv\fP(3)). .PP Funkce \fBdrem\fP() dělá přesně to samé. .SH "NÁVRATOVÉ HODNOTY" V případě úspěchu tato funkce vrací zbytek po dělení v plovoucí řádové čárce \fIx\fP\-\fIn\fP*\fIy\fP. Pokud je návratová hodnota 0 má znaménko shodné s \fIx\fP. .PP Je\-li \fIx\fP nebo \fIy\fP NaN, je vráceno NaN. .PP Pokud je \fIx\fP nekonečno a \fIy\fP není NaN je vystavena doménová chyba a je vráceno NaN. .PP .\" FIXME . Instead, glibc gives a domain error even if x is a NaN .\" Interestingly, remquo(3) does not have the same problem. Pokud je \fIy\fP nula a \fIx\fP není NaN je vystavena doménová chyba a je vráceno NaN. .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 a \fIy\fP není NaN \fIerrno\fP je nastaveno na \fBEDOM\fP (viz CHYBY). Je signalizována výjimka plovoucí čárky (\fBFE_INVALID\fP). .IP These functions do not set \fIerrno\fP for this case. .TP .\" [XXX see bug above] and \fIx\fP is not a NaN Doménová chyba: \fIy\fP je nula \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; lbw26 lb lb l l l. Rozhraní Atribut Hodnota T{ \fBdrem\fP(), \fBdremf\fP(), \fBdreml\fP(), .br \fBremainder\fP(), \fBremainderf\fP(), .br \fBremainderl\fP() T} Thread safety MT\-Safe .TE .SH "SPLŇUJE STANDARDY" .\" IEC 60559. Funkce \fBremainder\fP(), \fBremainderf\fP() a \fBremainderl\fP() jsou specifikovány v C99, POSIX.1\-2001 a POSIX.1\-2008. .PP Funkce \fBdrem\fP() je původem z 4.3BSD. Varianty \fIfloat\fP a \fIlong double\fP \fBdremf\fP() a \fBdreml\fP() existují na některých systémech jako Tru64 a glibc2. Vyvarujte se však použití těchto funkcí ve prospěch funkce \fBremainder\fP() a jiných. .SH CHYBY .\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=6779 Before glibc 2.15, the call .PP remainder(nan(""), 0); .PP 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. .PP .\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=6783 Before glibc 2.15, \fIerrno\fP was not set to \fBEDOM\fP for the domain error that occurs when \fIx\fP is an infinity and \fIy\fP is not a NaN. .SH PŘÍKLADY Volání "remainder(29.0, 3.0)" vrací \-1. .SH "DALŠÍ INFORMACE" \fBdiv\fP(3), \fBfmod\fP(3), \fBremquo\fP(3) .SH TIRÁŽ Tato stránka je součástí projektu Linux \fIman\-pages\fP v5.10. Popis projektu a informace o hlášení chyb najdete na \%https://www.kernel.org/doc/man\-pages/. .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 .