<p>My only question would be how should completely bogus input be handled (say the letter 'Z', with no numbers). It will return a -1 and set the int to 0, which would be the same result as the input '0.1231'. Should they be differentiated at script level?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/pull/836#issuecomment-199994828">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AFOciQSzhNG4sqj6BT_xS4jMjhiG14UIks5pwEscgaJpZM4H2UD-.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/OpenSIPS/opensips/pull/836#issuecomment-199994828"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>