How i convet String like "abc" to int? Help me. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How i convet String like "abc" to int? Help me.

15th May 2017, 10:08 AM
Sandaru Chamika
Sandaru Chamika - avatar
4 Answers
+ 2
you mean if you have a number in the string? or just anything?
15th May 2017, 10:44 AM
‎ɐısıօլɐ
‎ɐısıօլɐ - avatar
+ 2
well then you probably make a loop iterate over every character and check if it equals a certain number and if that is the case you save this information to a variable
15th May 2017, 10:50 AM
‎ɐısıօլɐ
‎ɐısıօլɐ - avatar
+ 1
What is the int value of "abc"?
15th May 2017, 10:33 AM
Calviղ
Calviղ - avatar
+ 1
its anything. like 1a, 123abc.
15th May 2017, 10:47 AM
Sandaru Chamika
Sandaru Chamika - avatar