From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e7b0825eca61cc23 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!news-east.rr.com!news-feed-01.rdc-kc.rr.com!news.rr.com!cyclone2.kc.rr.com!news2.kc.rr.com!tornado.socal.rr.com.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada Subject: Re: floating point to fixed point conversion References: <1140560157.376760.292570@g43g2000cwa.googlegroups.com> From: Keith Thompson Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:HIRd+KSI+MAmKmY+X+RrvmPyrqE= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 21 Feb 2006 23:51:57 GMT NNTP-Posting-Host: 66.75.136.120 X-Complaints-To: abuse@rr.com X-Trace: tornado.socal.rr.com 1140565917 66.75.136.120 (Tue, 21 Feb 2006 15:51:57 PST) NNTP-Posting-Date: Tue, 21 Feb 2006 15:51:57 PST Organization: Road Runner High Speed Online http://www.rr.com Xref: g2news1.google.com comp.lang.ada:3054 Date: 2006-02-21T23:51:57+00:00 List-Id: riya1012@gmail.com writes: > 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. Um, why are you asking about C coding in comp.lang.ada? -- Keith Thompson (The_Other_Keith) kst-u@mib.org San Diego Supercomputer Center <*> We must do something. This is something. Therefore, we must do this.