I have this string "1.79769313486232E+308" and am trying to convert it to a .NET numeric value (double?) but am getting the below exception. I am using Convert.ToDouble()
. What is the proper way to do this conversion?
OverflowException: Value was either too large or too small for a Double
Demonstrates the issue and a solution: