3 May
2009
3 May
'09
11:28 a.m.
In chuck 1.2.1.2, the family of db conversion functions appear to be broken, or at least have a unconventional interpretation of db -- they all seem have an offset of 100 db: for example: Std.powtodb(1.0) => 100.0 (expected 0.0) Std.powtodb(10.0) => 110.0 (expected 10.0) Std.dbtopow(0) => 0 (expected 1.0) Std.dbtopow(100) => 1.0 (expected 10000000000) (Similar comments apply to rmstodb() and dbtorms()) OTOH they are self-consistent, in that Std.dbtopow(Std.powtodb(x)) == x, so maybe someone thinks that's how they're supposed to behave? - Rob