kennen:lib:isnan
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
— | kennen:lib:isnan [2019-11-20 15:41] (aktuell) – angelegt - Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== isnan() ====== | ||
+ | ''# | ||
+ | |||
+ | <code cpp> | ||
+ | bool isnan (double x) | ||
+ | </ | ||
+ | | ||
+ | |||
+ | ==== Parameter ==== | ||
+ | | '' | ||
+ | ==== Ergebnis ==== | ||
+ | Rückgabewert: | ||
+ | die als Ergebnis von Operationen wie '' | ||
+ | |||
+ | ==== Siehe auch ==== | ||
+ | [[isinf]], | ||
+ | [[isfinite]]. | ||
+ | |||
+ | ==== Beispiel ==== | ||
+ | <code cpp isnan.cpp> | ||
+ | #include < | ||
+ | #include < | ||
+ | |||
+ | void properties(double x) | ||
+ | { | ||
+ | std::cout << std:: | ||
+ | << std:: | ||
+ | << std:: | ||
+ | << std:: | ||
+ | << !std:: | ||
+ | << std:: | ||
+ | << | ||
+ | } | ||
+ | |||
+ | int main() | ||
+ | { | ||
+ | std::cout << std:: | ||
+ | << " | ||
+ | |||
+ | properties(0.0); | ||
+ | properties(1.0); | ||
+ | properties(1.0/ | ||
+ | properties(0.0/ | ||
+ | |||
+ | properties(-0.0); | ||
+ | properties(-1.0); | ||
+ | properties(-1.0/ | ||
+ | properties(-0.0/ | ||
+ | |||
+ | properties(HUGE_VAL); | ||
+ | properties(INFINITY); | ||
+ | properties(NAN); | ||
+ | } | ||
+ | </ | ||
kennen/lib/isnan.txt · Zuletzt geändert: 2019-11-20 15:41 von 127.0.0.1