C++ has a standard function isinf()? like isnan()?
If yes, it returns true in case of +inf and -inf also?
merse 0 Junior Poster
Recommended Answers
Jump to Post— vijayan121 1,152isnan() is from C99; and is not part of C++98. See http://www.parashift.com/c++-faq-lite/newbie.html#faq-29.15
In C++0x, isnan() is part of TR1.You could easily roll out isnan() and isinf() on your own, though:
All 3 Replies
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
vijayan121 1,152 Posting Virtuoso
merse 0 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.