ceil(3) Library Functions Manual ceil(3) JMENO ceil, ceilf, ceill - ceiling function: smallest integral value not less than argument KNIHOVNA Matematicka knihovna (libm, -lm) POUZITI #include double ceil(double x); float ceilf(float x); long double ceill(long double x); Pozaduje mnozinu testovacich maker pro glibc (viz feature_test_macros(7)): ceilf(), ceill(): _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || /* Od glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE POPIS These functions return the smallest integral value that is not less than x. For example, ceil(0.5) is 1.0, and ceil(-0.5) is 0.0. NAVRATOVE HODNOTY These functions return the ceiling of x. If x is integral, +0, -0, NaN, or infinite, x itself is returned. CHYBOVE STAVY Neobjevuji se zadne chyby. POSIX.1-2001 popisuje celou skalu chyb tykajicich se preteceni. Viz POZNAMKY. ATRIBUTY Vysvetleni pojmu pouzitych v teto casti viz attributes(7). +--------------------------------------------+---------------+---------+ |Rozhrani | Atribut | Hodnota | +--------------------------------------------+---------------+---------+ |ceil(), ceilf(), ceill() | Thread safety | MT-Safe | +--------------------------------------------+---------------+---------+ STANDARDY C11, POSIX.1-2008. HISTORIE C99, POSIX.1-2001. Varianta vracejici double splnuje take SVr4 a 4.3BSD, C89. POZNAMKY SUSv2 and POSIX.1-2001 contain text about overflow (which might set errno to ERANGE, or raise an FE_OVERFLOW exception). In practice, the result cannot overflow on any current machine, so this error-handling stuff is just nonsense. (More precisely, overflow can happen only when the maximum value of the exponent is smaller than the number of mantissa bits. For the IEEE-754 standard 32-bit and 64-bit floating-point numbers the maximum value of the exponent is 127 (respectively, 1023), and the number of mantissa bits including the implicit bit is 24 (respectively, 53).) Celociselna hodnota vracena touto funkci muze byt prilis velka pro typ integer (int, long, etc.). Pokud se chcete vyhnout preteceni, ktere bude produkovat nedefinovane vysledky je doporuceno, aby aplikace provadela kontrolu rozsahu prevedene hodnoty pred tim nez ji bude prirazovat do promenne typu integer. DALSI INFORMACE floor(3), lrint(3), nearbyint(3), rint(3), round(3), trunc(3) PREKLAD Preklad teto prirucky do cestiny vytvorili Pavel Heimlich Tento preklad je bezplatna dokumentace; Prectete si GNU General Public License Version 3 nebo novejsi ohledne podminek autorskych prav. Neexistuje ZADNA ODPOVEDNOST. Pokud narazite na nejake chyby v prekladu teto prirucky, poslete e-mail na adresu . Linux man-pages 6.8 2. kvetna 2024 ceil(3)