title: Convert value into unsigned 32 bit
body: <p>I need to know the equivalent bash statement of the below Python statement.</p>
  
  <pre><code>xa = ctypes.c_uint32(a).value
  </code></pre>
  
  <p>I think this variable <code>a</code> converts into 32bit unsigned integer.</p>
  
  <p>Basically I need to convert integer value (positive or negative) into 32bit unsigned value in bash.</p>
  
  <p>when i type following command in python shell, it gives me the same value.</p>
  
  <p><code>ctypes.c_uint32(4029987).value</code></p>
  
  <p>output is</p>
  
  <p><code>4029987</code></p>
  
  <p>when i type following command in python shell, it gives me the below value.</p>
  
  <p><code>ctypes.c_uint32(-4029987).value</code></p>
  
  <p>output is</p>
  
  <p><code>4294544309</code></p>