+ 2

[Solved] How do you convert string into double?

I was trying to do the "Area of a circle" test and I'm having trouble converting string to double.

31st Aug 2021, 9:20 AM
james kelly
3 ответов
+ 6
You can use the: Convert.ToDouble(string) method. For example: string a = "135.5"; double b = Convert.ToDouble(a);
31st Aug 2021, 9:29 AM
Dimitris N. Kapoulas
Dimitris N. Kapoulas - avatar
+ 2
Thanks, both of you.
31st Aug 2021, 9:30 AM
james kelly
31st Aug 2021, 9:29 AM
Vtec Fan
Vtec Fan - avatar