How to add numbers to end of integer variable

Hi,

I have a integer variable “Two” (has value of 66). I’d like to create a new integer variable which would be Two + 0300. Meaning that in this case the value would be 660300.

How can I achieve this? Thank you.

You can convert them to string. Then put an assign like two+otherValue. Then convert to int again.

string concatenation can do that
like this
**str_output = Two.ToString+“0300” **
str_output = 660300
where str_output is a string variable
and to convert 660300 again back to a integer
int_output = Convert.ToInt32(str_output)
where int_output is a int32 variable

hope this would help you

Cheers @MikkoL

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.