How to convert a string x="172" into int? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to convert a string x="172" into int?

Convert Using string functions

26th Oct 2016, 3:34 AM
prasanth pra
prasanth pra - avatar
2 Answers
+ 1
You have yo parse the value, it depends on the language that u are using.
26th Oct 2016, 9:13 AM
Esteban Juarez Rodriguez
Esteban Juarez Rodriguez - avatar
0
In c# using Convert.ToInt32(x)
26th Oct 2016, 9:21 AM
Nadezhda