Is there a fast way to convert numbers with exponential notation (examples: \"0.5e10\" or \"-5e20\") to decimal or double?
Update: I found Parse a N
@Noldorin is correct try this code:
string str = "-5e20"; double d = double.Parse(str); Console.WriteLine(str);