kennen:lib:isnormal
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
— | kennen:lib:isnormal [2019-11-20 15:42] (aktuell) – angelegt - Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== isnormal() ====== | ||
+ | ''# | ||
+ | |||
+ | <code cpp> | ||
+ | bool isnormal (double x) | ||
+ | </ | ||
+ | | ||
+ | |||
+ | ==== Parameter ==== | ||
+ | | '' | ||
+ | ==== Ergebnis ==== | ||
+ | Rückgabewert: | ||
+ | |||
+ | ==== Siehe auch ==== | ||
+ | [[isfinite]]. | ||
+ | |||
+ | ==== Beispiel ==== | ||
+ | <code cpp isnormal.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); | ||
+ | } | ||
+ | </ | ||