[OpenSIPS-Users] Failure when converting floating point to int
Admin
smontour at twc.com
Wed Aug 5 01:31:11 CEST 2015
Hi,
I am trying to convert a floating point number to int but got empty
string. The floating point is stored as a string in redis server.
$avp(user_balance) = "23.55";
xlog("L_INFO", "User balance is $(avp(user_balance){s.int})\n");
The output is:
Aug 4 18:13:25 /usr/local/opensips/sbin/opensips[13031]: User balance
is
i need to convert the user balance to int.
What am i doing wrong?
I am running OpenSIPS (2.1.0 (x86_64/linux)).
Thanks.
More information about the Users
mailing list