<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body bgcolor="#FFFFFF">
<br>
<br>
<div class="moz-cite-prefix">On 09/14/2015 04:37 PM, Yufei Tao wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>
<div>
<div>Hi,<br>
<br>
</div>
I want to convert a Hex number string into a Dec number string, e.g. Hex number "123" into Dec number "291". What is the best way? I didn't find any transformation for this.<br>
<br>
</div>
Thank you!<br>
</div>
Yufei<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset> <br>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
Hi Yufei,<br>
<br>
Use app_python and python scripts contains somthing like that:<br>
<br>
<pre class="lang-py prettyprint prettyprinted" style=""><code><span class="pln">int</span><span class="pun">(</span><span class="str">"0x123"</span><span class="pun">,</span><span class="pln"> </span><span class="lit">16</span><span class="pun">)

Greetings 

Konrad 
</span></code></pre>
<br>
--<br>
<b>Konrad Rozycki</b><br>
<font size="small">Red Embedded <br>
</font>
<h5><font color="gray">
<p>This E-mail and any attachments hereto are strictly confidential and intended solely for the addressee. If you are not the intended addressee please notify the sender by return and delete the message.</p>
<p>You must not disclose, forward or copy this E-mail or attachments to any third party without the prior consent of the sender.</p>
<p>Red Embedded Design, Company Number 06688253 Registered in England: The Wave, 1 View Croft Road, Shipley, West Yorkshire, BD17 7DU</p>
</h5>
</font>
</body>
</html>