.\" -*- coding: UTF-8 -*- .\" Copyright 2004 Andries Brouwer . .\" .\" %%%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 .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH FINITE 3 "15 września 2017 r." "" "Podręcznik programisty Linuksa" .SH NAZWA finite, finitef, finitel, isinf, isinff, isinfl, isnan, isnanf, isnanl \- funkcje BSD do klasyfikacji liczb zmiennoprzecinkowych .SH SKŁADNIA .nf \fB#include \fP .PP \fBint finite(double \fP\fIx\fP\fB);\fP \fBint finitef(float \fP\fIx\fP\fB);\fP \fBint finitel(long double \fP\fIx\fP\fB);\fP .PP \fBint isinf(double \fP\fIx\fP\fB);\fP \fBint isinff(float \fP\fIx\fP\fB);\fP \fBint isinfl(long double \fP\fIx\fP\fB);\fP .PP \fBint isnan(double \fP\fIx\fP\fB);\fP \fBint isnanf(float \fP\fIx\fP\fB);\fP \fBint isnanl(long double \fP\fIx\fP\fB);\fP .fi .PP .RS -4 Wymagane ustawienia makr biblioteki glibc (patrz \fBfeature_test_macros\fP(7)): .RE .PP .ad l \fBfinite\fP(), \fBfinitef\fP(), \fBfinitel\fP(): .RS 4 /* Glibc od 2.19: */ _DEFAULT_SOURCE || /* Glibc w wersji <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .RE \fBisinf\fP(): .RS 4 _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE || /* Glibc od 2.19: */ _DEFAULT_SOURCE || /* Glibc w wersji <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .RE .br \fBisinff\fP(), \fBisinfl\fP(): .RS 4 /* Glibc od 2.19: */ _DEFAULT_SOURCE || /* Glibc w wersji <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .RE \fBisnan\fP(): .RS 4 _XOPEN_SOURCE || _ISOC99_SOURCE || /* Glibc od 2.19: */ _DEFAULT_SOURCE || /* Glibc w wersji <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .RE \fBisnanf\fP(), \fBisnanl\fP(): .RS 4 _XOPEN_SOURCE\ >=\ 600 || /* Glibc od 2.19: */ _DEFAULT_SOURCE || /* Glibc w wersji <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .RE .ad b .SH OPIS Funkcje \fBfinite\fP(), \fBfinitef\fP() oraz \fBfinitel\fP() zwracają wartość niezerową, gdy \fIx\fP nie jest ani nieskończonością, ani wartością "nie jest liczbą" (NaN). W pozostałych przypadkach zwracają 0. .PP Funkcje \fBisnan\fP(), \fBisnanf\fP() oraz \fBisnanl\fP() zwracają wartość niezerową, gdy \fIx\fP ma wartość "nie jest liczbą" (NaN), a 0 w pozostałych przypadkach. .PP Funkcje \fBisinf\fP(), \fBisinff\fP() oraz \fBisinfl\fP() zwracają \-1, gdy \fIx\fP reprezentuje ujemną nieskończoność, 1, gdy \fIx\fP reprezentuje dodatnią nieskończoność, a 0 w pozostałych przypadkach. .SH ATRYBUTY Informacje o pojęciach używanych w tym rozdziale można znaleźć w podręczniku \fBattributes\fP(7). .TS allbox; lbw31 lb lb l l l. Interfejs Atrybut Wartość T{ \fBfinite\fP(), \fBfinitef\fP(), \fBfinitel\fP(), .br \fBisinf\fP(), \fBisinff\fP(), \fBisinfl\fP(), .br \fBisnan\fP(), \fBisnanf\fP(), \fBisnanl\fP() T} Bezpieczeństwo wątkowe MT\-Safe .TE .SH UWAGI .\" .\" finite* not on HP-UX; they exist on Tru64. .\" .SH HISTORY .\" The .\" .BR finite () .\" function occurs in 4.3BSD. .\" see IEEE.3 in the 4.3BSD manual Proszę zauważyć, że te funkcje są przestarzałe. Standard C99 definiuje zastępujące je makra \fBisfinite\fP(), \fBisinf\fP() oraz \fBisnan\fP() (dla wszystkich typów). Należy również zwrócić uwagę na to, że \fBisinf\fP() z C99 daje słabsze gwarancje wartości zwracanej. Patrz \fBfpclassify\fP(3). .SH "ZOBACZ TAKŻE" \fBfpclassify\fP(3) .SH "O STRONIE" Angielska wersja tej strony pochodzi z wydania 5.10 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ą: Andrzej Krzysztofowicz , Robert Luberda i Michał Kułach . 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 .