Convert from ascii to int

Dear all, how can I convert from ascii to integer??

Is there any formula?


standard C funtion called atoi

int atoi ( const char * str );

This question comes up all the time. Why isn't in the Reference section I wonder?

atoi() is a function that is part of the AVR libc library The Reference homepage provides the following info:

The Arduino language is based on C/C++. It links against AVR Libc and allows the use of any of its functions; see its user manual for details.

with links to the Libc reference and user manual.

So, in short, it is in the Reference section.

Another more flexible option is strtol()

Three days ago:,51209.0.html