m26k9 <maduranga.liyanage@n_o_s_p_a_m.gmail.com> wrote:> I think I got it now. > The SHARC uses IEEE single-precision format. > So what I need to do is to write is as a decimal without an exponent, and > round it to the possible integer?> For example, the value is 2.345e-5, I write it as 0.00002345, which > converted to fixed-point will give zero. > If I had 2.345e+5, then I write 234500, so my fixed-point value is 234500.Well, except that you do that in binary, instead of decimal. That is, it is rounded in binary. -- glen

# Floating-point to Fixed-point in (Sharc) DSP

Started by ●June 3, 2010

Reply by ●June 7, 20102010-06-07