数字文字0.e0f是什么意思? [英] What does the numerical literal 0.e0f mean?
本文介绍了数字文字0.e0f是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我当前正在尝试调试未初始化的内存错误.现在,我在OpenBlas源代码中遇到了数字文字0.e0f(这是调试器当前所在的位置),这是什么意思?
I am currently trying to debug an uninitialized memory error. I have now come across the numerical literal 0.e0f in the OpenBlas source code (which is what the debugger is currently at) what does that mean?
上下文是这样的:
if ((alpha_r == 0.e0f) && (alpha_i == 0.e0f)) return;
0.e0f显然为0.
The 0.e0f evaluates to 0 apparently.
推荐答案
浮点文字有两种语法.第一部分由以下部分组成:
A floating-point literals have two syntaxes. The first one consists of the following parts:
- 包含小数点字符(定义有效位)的十进制数字的非空序列
- (可选)e或E,后跟可选的减号或加号以及非空十进制数字序列(定义指数)
- (可选)后缀类型说明符,如l,f,L或F
第二部分包括以下部分:
The second one consists of the following parts:
- 十进制数字的非空序列(定义有效位)
- e或E,后跟可选的减号或加号以及非空的十进制数字序列(定义指数)
- (可选)后缀类型说明符,如l,f,L或F
后缀类型说明符定义浮点文字的实际类型:
The suffix type specifier defines the actual type of the floating-point literal:
- (无后缀)定义双精度
- f F定义浮点数
- l L定义了long double
这篇关于数字文字0.e0f是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文