AnsweredAssumed Answered

fract16  conversion

Question asked by ama on Jun 17, 2011
Latest reply on Jun 20, 2011 by Yaniv.Sapir



I am dealing with data in "int", "short" and "double" and I want to filter it by IIR, so.

How can I convert from fract16 to double, short and int and vice versa?


I have found a relation to convert from int to fract16, by dividing the int values by 32768 to get a fraction between -1 and 1-2^(-15). But if there is a built in function like float_to_frct()


thank you very much and best regards,