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]

isgreater, isgreaterequal, isless, islessgreater, isunordered: makra pro otestování vztahu

Originální popis anglicky: isgreater, isgreaterequal, isless, islessgreater, isunordered - macros to test a relation

Návod, kniha: Linux Programmer's Manual

STRUČNĚ

#include <math.h>
 
int isgreater(x,y);
 
int isgreaterequal(x,y);
 
int isless(x,y);
 
int islessequal(x,y);
 
int islessgreater(x,y);
 
int isunordered(x,y);
 
Link with -lm.

POPIS / INSTRUKCE

The normal relation operations (like less) will fail if one of the operands is NaN. This will cause an exception. To avoid this, C99 defines these macros. The macros are guaranteed to evaluate their operands only once. The operand can be of any real floating-point type.
isgreater()
determines (x) > (y) without an exception if x or y is NaN.
isgreaterequal()
determines (x) >= (y) without an exception if x or y is NaN.
isless()
determines (x) < (y) without an exception if x or y is NaN.
islessequal()
determines (x) <= (y) without an exception if x or y is NaN.
islessgreater()
determines (x) < (y) || (x) > (y) without an exception if x or y is NaN. This macro is not equivalent to x != y because that expression is true if x or y is NaN.
isunordered()
is true if x or y is NaN and false otherwise.

NOTE

Not all hardware supports these functions, and where it doesn't, they will be emulated by macros. This will give you a performance penalty. Don't use these functions if NaN is of no concern for you.

ODPOVÍDAJÍCÍ

C99

SOUVISEJÍCÍ

fpclassify(3) isnan(3)
2002-07-27
©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(9198)