Calculate gainBFD3 Gain Calculation

Hi, how do you calculate gain in BFD3 ? Currently, if i set a slider to -9.32db i will get a value of 0.565714 in the conf file, but the calcultation not works correctly :

DB2VAL(-9,32)=0,341979442513709
VAL2DB(0.565714)=-4,94806146858895

?

function DB2VAL(x)
(
exp((x)*0.11512925464970228420089957273422);
);
//----------------------------
function VAL2DB(x)
local(v)
(
x < 0.0000000298023223876953125 ? (
-150;
) : (
v = log(x)*8.6858896380650365530225783783321;
v < -150 ? -150 : v;
);
);