Thanks Liviu. Also a small change in the documentation at
http://www.opensips.org/html/docs/modules/1.10.x/mathops.html#id249034
The parameter needs to be set as:
modparam("mathops", "decimal_digits", 10)
The documentation suggests to put the 10 in inverted commas i.e. "10" which
throws an error in syslog saying:
ERROR:core:set_mod_param_regex: parameter <decimal_digits> not found in
module <mathops>
--- Jayesh
On Fri, Aug 9, 2013 at 9:14 PM, Liviu Chircu <[email protected]> wrote:
> Hello Jayesh,
>
> Thank you for reporting! This is now fixed.
>
> Best regards,
>
> Liviu Chircu
> OpenSIPS Devhttp://www.opensips-solutions.com
>
> On 08/09/2013 06:00 PM, Jayesh Nambiar wrote:
>
> Hi,
> I was testing the mathops module and observed the following:
>
> math_eval("2.332 / 1.039", "$avp(result)");
> The above expression gives proper result. But:
>
> math_eval("2.332 / 0.039", "$avp(result)");
> This results in following error in the syslog:
>
> WARNING:mathops:convert_to_rpn: Parse expr error: Invalid operator! <0>
> ERROR:mathops:evaluate_exp: Failed to convert expression to RPN form!
>
> 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.
>
> Thanks,
>
> --- Jayesh
>
>
>
> _______________________________________________
> Users mailing
> [email protected]http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users