Go Down

Topic: Online Documentation missing String.toInt() (Read 3098 times) previous topic - next topic

Hypnopompia

The page located at /en/Reference/StringObject does not reference the toInt() function of the String object. I have found example sketches that use the toint() function and have used it myself. It would be nice if this was included in the reference documentation.

Thanks!

Hypnopompia

The forums software wouldn't let me post a link until after my first post, so here's the full url to the documation page: http://arduino.cc/en/Reference/StringObject

robtillaart

Can you post a minimal sample sketch as I cannot reproduce this and cannot find it in the String Class definition either. Are you using a library?
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Hypnopompia

#3
Jan 09, 2011, 09:49 pm Last Edit: Jan 09, 2011, 09:50 pm by thunter Reason: 1
I'm using the example sketch included in the Arduino 0022 download.

https://github.com/arduino/Arduino/blob/master/build/shared/examples/8.Strings/StringToInt/StringToInt.pde

See line #36

robtillaart

OK I see it is new in version 22, not used that one yet (much).
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Go Up