Could I convert a number to a string without tostring?

The title says it all. Could I convert a number to a string without tostring? This is just out of curiosity.

You can in a way if you append the number to a string

print("Test" .. 1) --Would print Test1 even though Test is a string and 1 is a number

The same would apply if you try to set a string property to a number, it would do the conversion for you

Though for things like setting the number into a StringValue, you do need to convert using tostring() I believe

I thought it said string to number not number to string, deleted my reply

EDIT:


looks like

""..Number

or

Number..""

works without tostring()

1 Like