0

How can I convert data

How do I convert String to int

23rd May 2017, 5:47 PM
Davy Jones 3
Davy Jones 3 - avatar
5 Respostas
+ 1
you need to parse them
23rd May 2017, 5:48 PM
LDK
LDK - avatar
+ 1
When you input data it is string, to convert it to int Console.WriteLine("Another number"); int y = Convert.ToInt32(Console.ReadLine()); You can now use your "y" as a number.
11th Jun 2017, 3:23 AM
Flavia Dyer
Flavia Dyer - avatar
0
how do I parse?
23rd May 2017, 5:49 PM
Davy Jones 3
Davy Jones 3 - avatar
0
for string to integer I don't really see the usecase can you tell me why you would wanna do that ?
23rd May 2017, 5:49 PM
LDK
LDK - avatar
0
For a code I am making I need a readline, but it tells me that it can't implicitly convert String to int
23rd May 2017, 6:30 PM
Davy Jones 3
Davy Jones 3 - avatar