title: Converting a hex number into a negative one in R
body: <p>I wanted to print a negative number using <code>sprintf</code>:
  <code>x &lt;- 5</code>,
  <code>sprintf(&quot;%x is a negative number&quot;, x)</code> and the result is the following one: <code>&quot;fffffffb is a negative number&quot;</code>.
  Then I tried to use separately <code>strtoi()</code> to convert the hex value:
  <code>strtoi(&quot;0xfffffffb&quot;, base=32L)</code> and the result was: [1] NA.</p>