Prev: Spectrum analysis (FFT) of partial waves / scilab
Next: Call for Papers: World Congress on Engineering and Computer Science WCECS 2010
From: glen herrmannsfeldt on 7 Jun 2010 22:19 m26k9 <maduranga.liyanage(a)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 |