We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexSuggestions & BugsWebsite,  Documentation,  Book Bugs › error in http://processing.org/reference/str_.html
Page Index Toggle Pages: 1
error in http://processing.org/reference/str_.html (Read 831 times)
error in http://processing.org/reference/str_.html
Sep 8th, 2008, 7:43pm
 
hello.
it's a very simple thing, but i´ve found an error in this example:



boolean b = false;
byte y = -28;
char c = 'R';
float f = -32.6;
int i = 1024;

String sb = str(b);
String sy = str(y);
String sc = str(c);
String sf = str(f);
String si = str(i);

sb = sb + sy + sc + sf + si + sh;

// There is no string sh, so it doesn´t work

println(sb);  // Prints 'false-28R-32.61024'
Re: error in http://processing.org/reference/str_.
Reply #1 - Sep 22nd, 2008, 2:48am
 
Thank you! This is fixed.
Page Index Toggle Pages: 1