C++ Reference: Standard C++ Library reference: C Library: cfenv: FE_INEXACT
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相关推荐
- 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 ...
- link library 、target library、symbol library、synthetic library对照分析-基础小知识(九)
文章目录 1.1 概念介绍 1.2 疑问解析 参考文档 DC 应用过程中涉及link library .target library.symbol library.synthetic library, ...
- 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: ...
- git fatal: cannot lock ref ‘HEAD‘:unable to resolve reference‘refs/heads/main‘:reference broken
问题: push的时候,电脑强制关机再启动,vscode中所有文件都变成了绿色,暂存待提交状态 当我再次提交时,就出现错误:git fatal: cannot lock ref 'HEAD':unab ...
- undefined reference to 'floor'/undefined reference to
undefined reference to 'floor'/undefined reference to `& undefined reference to 'pow'/undefined ...
- 问题排查--@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 ...
- C++ Reference: Standard C++ Library reference: C Library: cmath: cbrt
C++官网参考链接:https://cplusplus.com/reference/cmath/cbrt/ 函数 <cmath> <ctgmath> cbrt C99 dou ...
- C++ Reference: Standard C++ Library reference: C Library: cmath: erf
C++官网参考链接:https://cplusplus.com/reference/cmath/erf/ 函数 <cmath> <ctgmath> erf C99 doubl ...
- C++ Reference: Standard C++ Library reference: C Library: cstdio: printf
C++官网参考链接:https://cplusplus.com/reference/cstdio/printf/ 函数 <cstdio> printf int printf ( cons ...
- C++ Reference: Standard C++ Library reference: C Library: cstdio: fprintf
C++官网参考链接:https://cplusplus.com/reference/cstdio/fprintf/ 函数 <cstdio> fprintf int fprintf ( F ...
最新文章
- python功能性爬虫案例_Python使用requests及BeautifulSoup构建爬虫实例代码
- linux boost 卸载,Ubuntu下boost库的编译安装步骤及卸载方法详解
- java 中的static 用法
- NYOJ--71--独木舟上的旅行
- [iOS] 响应式编程开发-ReactiveCocoa(二)
- 寒假作业1 打印沙漏
- 拓端tecdat|R语言中Gibbs抽样的Bayesian贝叶斯简单线性回归
- WordPress分页插件WP-PageNavi分页导航nofollow
- 51单片机的篮球计分器设计
- 性格测试系统v1.0
- 以太网通信协议UDP
- 玩归玩,闹归闹,别拿抽奖开玩笑
- 用Python手撕一个批量填充数据到excel表格的工具,解放双手!
- html页面如何嵌套if标签,IF嵌套10个以上
- 中国联通5G网络架构
- xp计算机管理员桌面文件没有权限,电脑中右击文件没有以管理员身份运行选项怎么办...
- OpenCV制作一个类“全能扫描王”的简易扫描软件
- redis通过key模糊搜索_redis key模糊查找
- python安装教程(搬运工)
- (实测可用)STM32CubeMX教程-STM32L431RCT6开发板(定时器Timer2)