String to int

Hi everybody,

I need some help for my school project again.

I want to convert a String to an int, is it possible to do this ?

Thanks for your help :wink:

If you insist on using String:

Much better would be to use a string (null terminated char array) and atoi or strtol:

Hi,
Did you google arduino string to int

Tom.... :slight_smile:

pert:
If you insist on using String:
toInt() - Arduino Reference

Much better would be to use a string (null terminated char array) and atoi or strtol:

Thank you for your help ! it work very well

TomGeorge:
Hi,
Did you google arduino string to int

Tom.... :slight_smile:

Yes I did but i don't find something usefull... :slight_smile:

Gweno:
Yes I did but i don't find something usefull... :slight_smile:

When in doubt, RTFM