[OpenSIPS-Users] Performing math functions in OpenSIPs
Stanisław Pitucha
viraptor at gmail.com
Thu Mar 4 21:23:24 CET 2010
On 04.03.2010 20:05, Brad Bendy wrote:
> That makes since now, we had a float actually. At this time no way to
> work with floats at all right?
There's always a workaround :)
>>> $avp(i:55) = $avp(i:70) * .006;
$avp(i:55) = $avp(i:70) * 6;
Just treat i:55 as if it was multiplied by 1000. It seems like you're
trying to do some cost calculation - so just assume that i:55 is
expressed as the number of 10'ths of a cent.
Then format it properly when needed for output.
More information about the Users
mailing list