title: Tcl expressions with hex numbers?
body: <p>The Tcl <code>expr</code> function supports arguments written in hex notation: operands which begin with <code>0x</code> are treated as integers written in hex form.</p>
  
  <p>However the return value of <code>expr</code> is always in decimal form: <code>expr 0xA + 0xA</code> returns <code>20</code>, not <code>0x14</code>.</p>
  
  <p>Is there a way to tell <code>expr</code> to return the hex representation?
  Is there a Tcl function which converts decimal representation to hex?</p>