O nás     Inzerce     KontaktSpolehlivé informace o IT již od roku 2011
Hledat
Nepřehlédněte: Usnadní vám práci: Pozoruhodné IT produkty pro rok 2024
Správa dokumentů
Digitální transformace
Informační systémy
Hlavní rubriky: Informační systémy, Mobilní technologie, Datová centra, Sítě, IT bezpečnost, Software, Hardware, Zkušenosti a názory, Speciály

Pozoruhodné IT produkty 2024
E-knihy o IT zdarma
Manuál Linux
[Linux manuál]

nextafter, nextafterf, nextafterl, nexttoward, nexttowardf, nexttowardl: manipulace s pohyblivou řádovou čárkou

Originální popis anglicky: nextafter, nextafterf, nextafterl, nexttoward, nexttowardf, nexttowardl - floating point number manipulation

Návod, kniha: libc math functions

STRUČNĚ

#include <math.h>
 
double nextafter(double x, double y);
 
float nextafterf(float x, float y);
 
long double nextafterl(long double x, long double y);
 
double nexttoward(double x, long double y);
 
float nexttowardf(float x, long double y);
 
long double nexttowardl(long double x, long double y);
 
Link with -lm.

POPIS / INSTRUKCE

The nextafter() functions return the next representable neighbor of x in the direction towards y. The size of the step between x and the result depends on the type of the result. If x = y the function simply returns y. If either value is NaN, then NaN is returned. Otherwise a value corresponding to the value of the least significant bit in the mantissa is added or subtracted, depending on the direction.
The nexttoward() functions do the same as the nextafter() functions, except that they have a long double second argument.
These functions will signal overflow or underflow if the result goes outside of the range of normalized numbers.

ODPOVÍDAJÍCÍ

C99. This function is defined in IEC 559 (and the appendix with recommended functions in IEEE 754/IEEE 854).

SOUVISEJÍCÍ

nearbyint(3)
2002-08-10 GNU
©2011-2024 BusinessIT.cz, ISSN 1805-0522 | Názvy použité v textech mohou být ochrannými známkami příslušných vlastníků.
Provozovatel: Bispiral, s.r.o., kontakt: BusinessIT(at)Bispiral.com | Inzerce: Best Online Media, s.r.o., zuzana@online-media.cz
O vydavateli | Pravidla webu BusinessIT.cz a ochrana soukromí | Používáme účetní program Money S3 | pg(9460)