<ri******@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
hello guys,
I need some help from you. I am doing a DSP project and for that I need
to do some C coding for the conversion of sample data which is in
floating point representation to fixed point representation.
the sample data is in floating point like
0.224128
2.299965
0.448350
-1.779926
My DSP algorithm is implemented in C and is supposed to be using fixed
point representation.
The above data is intended to be converted to fixed integer format.I
request you to help me out regarding this conversion.I will be very
glad if u give me some hints or algorithms for this conversion.
Most can probably help you with scaling the data, but few can help with the
FFTs etc. You'll need to provide more information about your compiler and
the data. What is the range of the floating point data? What are the sizes
of long long, long, short, char, etc., of your compiler. If the range of
the floating point data is highly limited, you could just multiply by 100,
10000, etc. If the range is very wide, then you'll need large integers
64-bits in size which might be 'long long' for your compiler. Perhaps
provide a small piece of code showing what you are thinking or experimenting
with.
Rod Pemberton