[OpenSIPS-Users] negative values in math_rpn
xaled
xaled at web.de
Mon Jul 10 06:55:25 EDT 2017
Hi,
am I doing something wrong, or can math_rpn not handle negative values?
$var(neg) = "-6.135";
$var(neg_int) = $(var(neg){s.int});
math_rpn("$var(neg_int) abs", "$avp(result)");
2017-07-10T12:47:59.804008+02:00 fra-ivr01 /usr/local/sbin/opensips[10971]: DBG:mathops:w_evaluate_rpn: Evaluating expression: -6 abs
2017-07-10T12:47:59.804339+02:00 fra-ivr01 /usr/local/sbin/opensips[10971]: WARNING:mathops:get_rpn_op: Parse expr error: Invalid operator! <-6>
2017-07-10T12:47:59.804669+02:00 fra-ivr01 /usr/local/sbin/opensips[10971]: ERROR:mathops:evaluate_rpn: Failed to parse RPN!
Thanks,
xaled
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170710/41e0c33c/attachment.html>
More information about the Users
mailing list