.\" -*- coding: UTF-8 -*-
.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
.\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
.\"     <mtk.manpages@gmail.com>
.\"
.\" %%%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 "15 września 2017 r." "" "Podręcznik programisty Linuksa"
.SH NAZWA
drem, dremf, dreml, remainder, remainderf, remainderl \- reszta z dzielenia
zmiennoprzecinkowego
.SH SKŁADNIA
.nf
\fB#include <math.h>\fP
.PP
/* Wersje 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
/* Przestarzałe synonimy */
\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
Proszę linkować z \fI\-lm\fP.
.PP
.in -4n
Wymagane ustawienia makr biblioteki glibc (patrz \fBfeature_test_macros\fP(7)):
.in
.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
    || /* Glibc w wersji <= 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
    || /* Glibc w wersji <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
.RE
.br
\fBdrem\fP(), \fBdremf\fP(), \fBdreml\fP():
.RS 4
/* Od glibc 2.19: */ _DEFAULT_SOURCE
    || /* Glibc w wersji <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
.RE
.ad b
.SH OPIS
Funkcje te obliczają resztę z dzielenia \fIx\fP przez \fIy\fP.  Zwracana wartość
to \fIx\fP\-\fIn\fP*\fIy\fP, gdzie \fIn\fP jest wynikiem dzielenia \fIx\ /\ y\fP,
zaokrąglonym do najbliższej liczby całkowitej. Jeśli wartość bezwzględna z
\fIx\fP\-\fIn\fP*\fIy\fP   wynosi 0.5, to \fIn\fP jest zaokrąglane do liczby parzystej.
.PP
Funkcje te nie zależą od bieżącego kierunku zaokrąglania (patrz \fBfenv\fP(3)).
.PP
Funkcja \fBdrem\fP() robi dokładnie to samo.
.SH "WARTOŚĆ ZWRACANA"
Funkcje te, gdy się zakończą pomyślnie, zwracają resztę z dzielenia
zmiennoprzecinkowego  \fIx\fP\-\fIn\fP*\fIy\fP. Jeśli wynikiem jest 0, to przyjmuje
ono znak taki sam jak znak argumentu \fIx\fP.
.PP
Jeśli \fIx\fP lub \fIy\fP jest NaN, to zwracane jest NaN.
.PP
Jeśli \fIx\fP jest równe nieskończoności, a \fIy\fP jest różne od NaN, to
występuje błąd dziedziny i zwracane jest NaN.
.PP
.\" FIXME . Instead, glibc gives a domain error even if x is a NaN
.\" Interestingly, remquo(3) does not have the same problem.
Jeśli \fIy\fP wynosi zero, a \fIx\fP jest różne od NaN, to występuje błąd
dziedziny i zwracane jest NaN.
.SH BŁĘDY
Informacje o tym, jak określić, czy wystąpił błąd podczas wywołania tych
funkcji, można znaleźć w podręczniku \fBmath_error\fP(7).
.PP
Mogą wystąpić następujące błędy:
.TP 
Błąd dziedziny: \fIx\fP jest nieskończonością, a \fIy\fP nie jest NaN
\fIerrno\fP is set to \fBEDOM\fP (but see BUGS).  An invalid floating\-point
exception (\fBFE_INVALID\fP)  is raised.
.IP
Funkcje te nie ustawiają \fIerrno\fP w tym przypadku.
.TP 
.\" [XXX see bug above] and \fIx\fP is not a NaN
Błąd dziedziny: \fIy\fP jest równe zero
\fIerrno\fP jest ustawiane na \fBEDOM\fP. Rzucany jest wyjątek niepoprawnej
operacji zmiennoprzecinkowej (\fBFE_INVALID\fP).
.SH ATRYBUTY
Informacje o pojęciach używanych w tym rozdziale można znaleźć w podręczniku
\fBattributes\fP(7).
.TS
allbox;
lbw26 lb lb
l l l.
Interfejs	Atrybut	Wartość
T{
\fBdrem\fP(),
\fBdremf\fP(),
\fBdreml\fP(),
.br
\fBremainder\fP(),
\fBremainderf\fP(),
.br
\fBremainderl\fP()
T}	Bezpieczeństwo wątkowe	MT\-Safe
.TE
.SH "ZGODNE Z"
.\" IEC 60559.
Funkcje \fBremainder\fP(), \fBremainderf\fP() oraz \fBremainderl\fP() są wymienione w
C99, POSIX.1\-2001 i POSIX.1\-2008.
.PP
Funkcja \fBdrem\fP() pochodzi z 4.3BSD. Warianty przyjmujące \fIfloat\fP oraz
\fIlong double\fP, czyli \fBdremf\fP() i  \fBdreml\fP() istnieją w niektórych
systemach takich jak Tru64 i glibc2. Prosimy unikać używania tych funkcji,
preferując  \fBremainder\fP() itd. zamiast nich.
.SH BŁĘDY
.\" 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 PRZYKŁAD
Wywołanie "remainder(29.0, 3.0)" zwraca \-1.
.SH "ZOBACZ TAKŻE"
\fBdiv\fP(3), \fBfmod\fP(3), \fBremquo\fP(3)
.SH "O STRONIE"
Angielska wersja tej strony pochodzi z wydania 5.04 projektu Linux
\fIman\-pages\fP. Opis projektu, informacje dotyczące zgłaszania błędów oraz
najnowszą wersję oryginału można znaleźć pod adresem
\%https://www.kernel.org/doc/man\-pages/.

.SH TŁUMACZENIE
Autorami polskiego tłumaczenia niniejszej strony podręcznika są:
Adam Byrtek <alpha@irc.pl>,
Andrzej Krzysztofowicz <ankry@green.mf.pg.gda.pl>,
Robert Luberda <robert@debian.org>
i
Michał Kułach <michal.kulach@gmail.com>
.

Niniejsze tłumaczenie jest wolną dokumentacją. Bliższe informacje o warunkach
licencji można uzyskać zapoznając się z
.UR https://www.gnu.org/licenses/gpl-3.0.html
GNU General Public License w wersji 3
.UE
lub nowszej. Nie przyjmuje się ŻADNEJ ODPOWIEDZIALNOŚCI.

Błędy w tłumaczeniu strony podręcznika prosimy zgłaszać na adres
.MT
manpages-pl-list@lists.sourceforge.net
.ME .
