title: Pack two numbers into one Int32
body: <p>I am sending data to a connected device and have the issue come up where one integer retrunded from the device holds two id's. One is packed in the 10 LSB bits and the second is packed in the 22 MSB bits. From help on this site I found how to parse the two numbers ( i believe this is correct anyways):</p>
  <pre><code>//10 LSB bits
  var nodeID = source &amp; 0x3FF; //mask 10 LSBs
  
  //22 MSB bits: mask + bitshift
  var companyID = (source &amp; 0x3FFFFF) &gt;&gt; 10;
  </code></pre>
  <p>Now i need to create an int32 from two numbers (10 bits and 22 bits respectively) and need some direction again. What would be the steps involved?</p>
  <p>Thanks!</p>