Pages: [1]   Go Down
Author Topic: Online Documentation missing String.toInt()  (Read 2530 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 168
Posts: 12430
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Rob Tillaart

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: January 09, 2011, 03:50:09 pm by thunter » Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 168
Posts: 12430
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Rob Tillaart

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

Pages: [1]   Go Up
Jump to: