开发者

Exponent Function in C#

开发者 https://www.devze.com 2023-01-21 20:48 出处:网络
i\'ve a string like1.00E+4 Is there any built in 开发者_高级运维function to convert this string to 10000.(Integer convertion [1.00E+4=10000]).?

i've a string like1.00E+4

Is there any built in 开发者_高级运维function to convert this string to 10000.(Integer convertion [1.00E+4=10000]).?

Now i'm using regular expression for this kind of strings


You can do:

double.Parse("1.00E+4", CultureInfo.InvariantCulture)
0

精彩评论

暂无评论...
验证码 换一张
取 消