.\" -*- coding: UTF-8 -*- .\" Copyright 2001 Andries Brouwer . .\" 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 .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH FLOOR 3 "15. září 2017" "" "Linux \- příručka programátora" .SH JMÉNO floor, floorf, floorl \- největší celé číslo ne větší než x .SH POUŽITÍ .nf \fB#include \fP .PP \fBdouble floor(double \fP\fIx\fP\fB);\fP \fBfloat floorf(float \fP\fIx\fP\fB);\fP \fBlong double floorl(long double \fP\fIx\fP\fB);\fP .fi .PP 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 \fBfloorf\fP(), \fBfloorl\fP(): .RS 4 _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L || /* Od glibc 2.19: */ _DEFAULT_SOURCE || /* Verze glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .RE .ad .SH POPIS These functions return the largest integral value that is not greater than \fIx\fP. .PP Například \fIfloor(0.5)\fP je 0.0 a \fIfloor(\-0.5)\fP je \-1.0. .SH "NÁVRATOVÉ HODNOTY" These functions return the floor of \fIx\fP. .PP If \fIx\fP is integral, +0, \-0, NaN, or an infinity, \fIx\fP itself is returned. .SH "CHYBOVÉ STAVY" Neobjevují se žádné chyby. POSIX.1\-2001 popisuje celou škálu chyb týkajících se přetečení. Viz POZNÁMKY. .SH ATRIBUTY Vysvětlení pojmů použitých v této části viz \fBattributes\fP(7). .TS allbox; lbw27 lb lb l l l. Rozhraní Atribut Hodnota T{ \fBfloor\fP(), \fBfloorf\fP(), \fBfloorl\fP() T} Thread safety MT\-Safe .TE .SH "SPLŇUJE STANDARDY" C99, POSIX.1\-2001, POSIX.1\-2008. .PP Varianta vracející \fIdouble\fP splňuje také SVr4 a 4.3BSD, C89. .SH POZNÁMKY .\" The POSIX.1-2001 APPLICATION USAGE SECTION discusses this point. SUSv2 a POSIX.1\-2001 obsahují text, který diskutuje přetečení(to může nastavit \fIerrno\fP na \fBERANGE\fP nebo vyvolá výjimku \fBFE_OVERFLOW\fP). V praxi však výsledek nemůže přetéct na žádném moderním počítači, takže tento komentář nemá smysl. (Přesněji, přetečení může nastat pouze když maximální hodnota exponentu je menší než maximální hodnota mantisy. Například pro IEEE\-754 standard pro 32 a 64 bitová čísla v plovoucí řádové čárce jsou hodnoty pro exponent 128 (respektive 1024) a pro mantisu 24 (respektive 53).) .SH "DALŠÍ INFORMACE" \fBceil\fP(3), \fBlrint\fP(3), \fBnearbyint\fP(3), \fBrint\fP(3), \fBround\fP(3), \fBtrunc\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 .