I am working on IIR filter design, I got filter coefficients, now I want to truncate the coefficients so as to perform scaling.
let 0.2145678340000 be one of my coefficients. I want to truncate to 0.21456
I used below code to do that, but it wont work.
x_tr = fix(x*2^5)/2^5
can someone help me