#define isfinite(f) ((*(unsigned long *)&f & 0x7f800000) != 0x7f800000)
Noch nen gecopypasteder c++ code
Noch nen gecopypasteder c++ code
Quote:#include <iostream>
#include <limits>
int main()
{
if (std::numeric_limits<double>::has_infinity)
std::cout << std::numeric_limits<double>::infinity() << std::endl;
if (std::numeric_limits<double>::has_quiet_NaN)
std::cout << std::numeric_limits<double>::quiet_NaN() << std::endl;
if (std::numeric_limits<double>:ignaling_NaN)
std::cout << std::numeric_limits<double>:ignaling_NaN() << std::endl;
return 0;
}
LG
steffen
steffen