[OpenSIPS-Users] likely bug in mathops module

Liviu Chircu liviu at opensips.org
Fri Aug 9 17:44:16 CEST 2013


Hello Jayesh,

Thank you for reporting! This is now fixed.

Best regards,

Liviu Chircu
OpenSIPS Dev
http://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 list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130809/09b94454/attachment.htm>


More information about the Users mailing list