C++官方参考链接:https://cplusplus.com/reference/cfenv/FE_INEXACT/

宏 
<cfenv>
FE_INEXACT
int

不精确的结果异常
此宏展开为int类型的值,用于标识因不精确的结果引发的浮点异常。
当操作的返回类型不能精确地表示结果时(例如在大多数实现中,1.0/3.0或sqrt(2.0)),或者函数由于其他原因不能产生精确的结果时,会引发不精确异常。
它被定义为一个精确的2的幂的值,允许将多个浮点异常合并(使用按位或操作符:|)为单个值:

macro value(宏值) description(描述)
FE_DIVBYZERO Pole error: division by zero, or some other asymptotically infinite result (from finite arguments).(极点错误:除以零,或其他渐进无穷大的结果(来自有限的实参)。)
FE_INEXACT Inexact: the result is not exact.(不精确:结果不精确。)
FE_INVALID Domain error: At least one of the arguments is a value for which the function is not defined.(定义域错误:至少有一个实参是函数没有定义的值。)
FE_OVERFLOW Overflow range error: The result is too large in magnitude to be represented as a value of the return type.(上溢范围错误:结果的绝对值大小太大,不能用返回类型的值表示。)
FE_UNDERFLOW Underflow range error: The result is too small in magnitude to be represented as a value of the return type.(下溢范围错误:结果的绝对值大小太小,无法用返回类型的值表示。)
FE_ALL_EXCEPT All exceptions (selects all of the exceptions supported by the implementation).(所有异常(选择实现支持的所有异常)。)

某些库实现可能支持额外的浮点异常值(其对应的宏也以FE_开头)。
C99
库可以在<fenv.h>中只定义它们支持的以上宏值(其他的可能没有定义)。
C++ 11
至少上述所有宏值都在<cfenv>中定义(即使实现不支持)。

C++ Reference: Standard C++ Library reference: C Library: cfenv: FE_INEXACT相关推荐

  1. Conditional project or library reference in Visual Studio

    Conditional project or library reference in Visual Studio In case you were wondering why you haven't ...

  2. link library 、target library、symbol library、synthetic library对照分析-基础小知识(九)

    文章目录 1.1 概念介绍 1.2 疑问解析 参考文档 DC 应用过程中涉及link library .target library.symbol library.synthetic library, ...

  3. undefined reference to `__stack_chk_guard' .. undefined reference to `__stack_chk_fail'

    1. 编译出错 undefined reference to `__stack_chk_guard' undefined reference to `__stack_chk_fail' 解决方法-1: ...

  4. git fatal: cannot lock ref ‘HEAD‘:unable to resolve reference‘refs/heads/main‘:reference broken

    问题: push的时候,电脑强制关机再启动,vscode中所有文件都变成了绿色,暂存待提交状态 当我再次提交时,就出现错误:git fatal: cannot lock ref 'HEAD':unab ...

  5. undefined reference to 'floor'/undefined reference to

    undefined reference to 'floor'/undefined reference to `& undefined reference to 'pow'/undefined ...

  6. 问题排查--@cannot lock ref 'HEAD': unable to resolve reference 'refs/heads/master': reference broken解决方法

    @cannot lock ref 'HEAD': unable to resolve reference 'refs/heads/master': reference broken解决 作者用的是ID ...

  7. C++ Reference: Standard C++ Library reference: C Library: cmath: cbrt

    C++官网参考链接:https://cplusplus.com/reference/cmath/cbrt/ 函数  <cmath> <ctgmath> cbrt C99 dou ...

  8. C++ Reference: Standard C++ Library reference: C Library: cmath: erf

    C++官网参考链接:https://cplusplus.com/reference/cmath/erf/ 函数  <cmath> <ctgmath> erf C99 doubl ...

  9. C++ Reference: Standard C++ Library reference: C Library: cstdio: printf

    C++官网参考链接:https://cplusplus.com/reference/cstdio/printf/ 函数  <cstdio> printf int printf ( cons ...

  10. C++ Reference: Standard C++ Library reference: C Library: cstdio: fprintf

    C++官网参考链接:https://cplusplus.com/reference/cstdio/fprintf/ 函数  <cstdio> fprintf int fprintf ( F ...

最新文章

  1. python功能性爬虫案例_Python使用requests及BeautifulSoup构建爬虫实例代码
  2. linux boost 卸载,Ubuntu下boost库的编译安装步骤及卸载方法详解
  3. java 中的static 用法
  4. NYOJ--71--独木舟上的旅行
  5. [iOS] 响应式编程开发-ReactiveCocoa(二)
  6. 寒假作业1 打印沙漏
  7. 拓端tecdat|R语言中Gibbs抽样的Bayesian贝叶斯简单线性回归
  8. WordPress分页插件WP-PageNavi分页导航nofollow
  9. 51单片机的篮球计分器设计
  10. 性格测试系统v1.0
  11. 以太网通信协议UDP
  12. 玩归玩,闹归闹,别拿抽奖开玩笑
  13. 用Python手撕一个批量填充数据到excel表格的工具,解放双手!
  14. html页面如何嵌套if标签,IF嵌套10个以上
  15. 中国联通5G网络架构
  16. xp计算机管理员桌面文件没有权限,电脑中右击文件没有以管理员身份运行选项怎么办...
  17. OpenCV制作一个类“全能扫描王”的简易扫描软件
  18. redis通过key模糊搜索_redis key模糊查找
  19. python安装教程(搬运工)
  20. (实测可用)STM32CubeMX教程-STM32L431RCT6开发板(定时器Timer2)

热门文章

  1. ubuntu18.04 虚拟机重启后变成只读模式,怎么恢复?
  2. Android 4.1 Netd详细分析(一)概述与应用实例
  3. 【原创】个人常用电脑软件、浏览器插件、手机APP常用推荐
  4. 20181018 考试记录
  5. ubuntu 20.04gitlab-runner docker方式安装使用
  6. 开发者将《午夜凶铃》与 ARKit 结合,把贞子带到你面前
  7. 搜狗微信公众号文章反爬虫完美攻克
  8. 从极客到 CEO,开发者应该如何提升技术领导力?
  9. matlab各类数据导入
  10. 计算机中单位换算,计算机常用单位换算