简体   繁体   English

在C ++中,Vb.net等于1.0e-5是什么?

[英]What is Vb.net equivalent of 1.0e-5 in C++?

I have a C++ program , a line from it in macro definitions says 我有一个C ++程序,宏定义中的一行表示

#define U_MIN 1.0e-5
#define U_MAX 1.0e5

If I wish to convert this code in Vb.net language what is the equivalent? 如果我希望将此代码转换为Vb.net语言,则等效什么?

e is exponent notation... e是指数表示法...

1.0e-5 = 1.0 x 10 ^ -5 = 0.00001
1.0e5 = 1.0 x 10 ^ 5 = 100000

so.. 所以..

Const U_MIN As Double = 0.00001
Const U_MAX As Double = 100000

Note that Visual Studio actually lets you use exponent notation, so you can type 请注意,Visual Studio实际上允许您使用指数表示法,因此您可以输入

Const U_MIN As Double = 1e-5

and it will expand it for you.. 它将为您扩展。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM