<div dir="ltr">Thanks Liviu. Also a small change in the documentation at <a href="http://www.opensips.org/html/docs/modules/1.10.x/mathops.html#id249034">http://www.opensips.org/html/docs/modules/1.10.x/mathops.html#id249034</a><div>
<br></div><div>The parameter needs to be set as:</div><div><pre class="" style="background-color:rgb(254,254,238);color:rgb(0,0,0);border:1px solid rgb(153,204,204);padding-left:15pt">modparam("mathops", "decimal_digits", 10)</pre>
</div><div class="gmail_extra">The documentation suggests to put the 10 in inverted commas i.e. "10" which throws an error in syslog saying:</div><div class="gmail_extra">ERROR:core:set_mod_param_regex: parameter <decimal_digits> not found in module <mathops></div>
<div class="gmail_extra"><br></div><div class="gmail_extra">--- Jayesh<br><br><div class="gmail_quote">On Fri, Aug 9, 2013 at 9:14 PM, Liviu Chircu <span dir="ltr"><<a href="mailto:liviu@opensips.org" target="_blank">liviu@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hello Jayesh,<br>
<br>
Thank you for reporting! This is now fixed.<br>
<br>
Best regards,<br>
<pre cols="72">Liviu Chircu
OpenSIPS Dev
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre><div><div class="h5">
On 08/09/2013 06:00 PM, Jayesh Nambiar wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hi,
<div>I was testing the mathops module and observed the
following:</div>
<div><br>
</div>
<div>math_eval("2.332 / 1.039", "$avp(result)");<br>
</div>
<div>The above expression gives proper result. But:</div>
<div><br>
</div>
<div>math_eval("2.332 / 0.039", "$avp(result)");<br>
</div>
<div>This results in following error in the syslog:</div>
<div><br>
</div>
<div>WARNING:mathops:convert_to_rpn: Parse expr error: Invalid
operator! <0><br>
</div>
<div>ERROR:mathops:evaluate_exp: Failed to convert expression to
RPN form!<br>
</div>
<div><br>
</div>
<div>Basically the division with a float point value starting
with '0.' doesn't work. Can somebody please help me in
confirming this. I have downloaded from 1.10beta from source
and installed.</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>--- Jayesh</div>
<div><br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div>