Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - In c#, how to convert the string type of textbox 1.text into double data?
In c#, how to convert the string type of textbox 1.text into double data?
Double. parse (textbox1.text) will do.

There is also a convert: convert. to double (textbox1.text);

In fact, as long as you use string to convert other types, you can use the Parse () method, such as

Convert to int type: Int32 Analysis ()

Convert to floating point type: floating point. Analysis ()

So is Convert.