V3 strings
Displaying 1-4 of 4 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Ness

Is there any way you can concat an int onto a string? something like:

int num=42;

string out = "the number is: " + num;


Verge bombs out saying 'num is not a known string identifier'

Posted on 2004-05-20 20:43:16

Kildorf

Quote:Originally posted by Ness


int num=42;

string out = "the number is: " + num;



I think what you want is

string out = "the number is: " + str(num);

I'm hoping I'm right.

Posted on 2004-05-20 20:49:51

Ness

Yeah it worked, thanks

Posted on 2004-05-20 21:11:41

Kildorf

Good good. Glad to help.

Posted on 2004-05-20 21:22:36


Displaying 1-4 of 4 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.