Put Integers Together

How do I put 2 integers together? Like if I have a number thats

var numb : int = 123;

how do I put the 1 and 3 together to make 13?

I don’t see the sense in that, but here you go (C#):

int i = int.Parse(numb.ToString()[0].ToString() + numb.ToString()[2].ToString());

ugly but should work.

UnityJavaScript should look similar.

then i == 13;