<div dir="ltr"><div>Hi Daniel,</div><div>Thank you for the reply. One scenario was like to check if the available credit is greater than or equal to required credit, which requires comparison of float values in the script. Currently the solution is to multiply the rates by say 10000000 and then compare the values in the script. It works well but doesnt look like a right way of doing it. So I might probably offload this task to the DB !!</div>
<div><br></div><div>I will definitely use XAVP more and try to offload arithmetic operations to DB as much as possible.</div><div><br></div><div>Thanks,</div><div><br></div><div>--- Jayesh</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Jul 22, 2013 at 3:46 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<div class="im"><br>
<br>
On 7/17/13 3:00 PM, Jayesh Nambiar wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is there a plan to support floating point arithmetic operations in kamailio in the near future.<br>
</blockquote></div>
it might happen, although is not a high priority here (and don't know about other devs), because there are ways to do it right now in many cases - if you give details about some specific needs, we may be able to point the solution.<br>

<br>
If you need to work with such value in your module (e.g., store and retrieve later), XAVPs has lots of types that can store (only the arithmetic operations from config are limited to int and string).<br>
<br>
Cheers,<br>
Daniel<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/<u></u>miconda</a><br>
<br>
<br>
______________________________<u></u>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
</font></span></blockquote></div><br></div>