<div dir="ltr">Hi<div><br></div><div>I developed a prepaid/postpaid module to handle our billing scenarios. When dealing with rates, most of them are < 1.00 and precision is very important. Looking at this conversion function "db_double2str ", it uses only 2 decimal places:</div><div><br></div><div>ret = snprintf(_s, *_l, "%-10.2f", _v);<br></div><div><br></div><div>This isn't enough for billing, most rates have 4 or even 6 decimal places, like 0.001230.</div><div><br></div><div>To fix this, I changed to 9.6, assuming user balance will never be above 999 millions =)<br></div><div><br></div><div>Questions: </div><div>1) Can this lead to some bug on opensips? </div><div>2) How about changing opensips to use 9.6 or even 10.6, instead of 10.2?</div><div><br></div><div>Thanks</div><div><br></div><div><br></div></div>