There is String.toInt()
, but no String.toLong()
or the many other variations. Do I have to resort to atol(String.c_str())
or is there a better way to convert a String
to a long?
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It's 100% free, no registration required.
Sign up
Sign up
Here's how it works:
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
|
|||
|
Using In fact, looking at the code for
So the answer is: use |
|||
|