Hello,
It's quite straightforward but getting different results in VB6 :/
Should return: 64638
I'm getting negative numbers in VB :/
It's quite straightforward but getting different results in VB6 :/
Code:
ushort rr;
rr = (ushort)(Math.Log(32000 / 48000.0) * 1536.0 / Math.Log(2.0));
Code:
MsgBox Math.Log(32000 / 48000#) * 1536# / Math.Log(2#)