Arduino Forum
Convert String to int
Projects
Programming
SurferTim
May 20, 2012, 11:34am
2
This should work.
char myStr[3] = {'1','2',0}; int myInt = atoi(myStr);
show post in topic
Related topics
Topic
Replies
Views
Activity
Convert serial.read() to usable int
Programming
13
100058
May 5, 2021
Conversion string to int
Programming
8
1758
May 5, 2021
Serial ASCII conversion to int
Syntax & Programs
2
32320
May 6, 2021
Getting an integer of the serial?
Interfacing
8
33168
May 6, 2021
Converting an Array to an Int
Syntax & Programs
17
4357
May 6, 2021