Thorin Oakenshield
Thorin Oakenshield

Reputation: 14692

Exponent Function in C#

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

Upvotes: 4

Views: 327

Answers (1)

Klaus Byskov Pedersen
Klaus Byskov Pedersen

Reputation: 121037

You can do:

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

Upvotes: 5

Related Questions