[OpenSIPS-Users] likely bug in mathops module
Jayesh Nambiar
jayesh1017 at gmail.com
Fri Aug 9 17:00:28 CEST 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130809/339aa489/attachment.htm>
More information about the Users
mailing list