0

I was looking at new features of C99 and saw the floating point environment:

#include <fenv.h>

My question is simple. If I'm performing floating point number computations, do I have to include the above preprocessor directive in my code? If no, then what does this directive do and when does it become important to include?

Thanks a lot...

4

2 回答 2

2

You only need to include the fenv.h header if you intend to use any of the features it provides. Those features are described here-

于 2010-04-12T18:52:48.403 回答
1

cfenv可能不是很相关,但 C++11 现在还包括通过头文件对 C99 浮点环境函数的支持。

于 2012-10-04T18:48:50.467 回答