Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do i append an integer to a string
#1
I am trying to append an integer to a string and cant find a way to do it.

For example...
str a
int b
str c
a = "word"
b = 10

How can i get c to be "word10" by joining a and b?

Any help would be much appreciated
#2
c.from(a b)

or

c=a
c+b
#3
Perfect thanks, I was expecting a much more complicated answer.


Forum Jump:


Users browsing this thread: 4 Guest(s)