If your culture uses .
as the decimal separator, just double.Parse("1.50E-15")
should work.
If your culture uses something else (e.g. ,
) or you want to make sure your application works the same on every computer, you should use InvariantCulture
:
double.Parse("1.50E-15", CultureInfo.InvariantCulture)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…