comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam@spam.com>
Subject: Re: floating point to fixed point conversion
Date: Tue, 21 Feb 2006 23:49:05 GMT
Date: 2006-02-21T23:49:05+00:00	[thread overview]
Message-ID: <RFNKf.4051$UN.951@newsread2.news.pas.earthlink.net> (raw)
In-Reply-To: <1140560157.376760.292570@g43g2000cwa.googlegroups.com>

riya1012@gmail.com wrote:

> 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.

This is c.l.ada. We're for engineering SW in Ada, not for "C coding".

> 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.

I have no idea how to convert floating-point values to fixed point in C, and 
this does not seem to be the right place to be asking about that. As far as I 
know, C does not have fixed-point types. Ada does; yet another reason to use 
Ada. If you get a useful answer about C coding here, it will be pure luck. I 
suggest you try c.l.c.

If I'm misinterpreting your question, and this does have something to do with 
Ada, perhaps you can rephrase it in a manner that makes that clear.

-- 
Jeff Carter
"Death awaits you all, with nasty, big, pointy teeth!"
Monty Python & the Holy Grail
20



  reply	other threads:[~2006-02-21 23:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-21 22:15 floating point to fixed point conversion riya1012
2006-02-21 23:49 ` Jeffrey R. Carter [this message]
2006-02-21 23:51 ` Keith Thompson
2006-02-22  0:51   ` Keith Thompson
2006-02-22 11:01 ` stuart clark
2006-02-22 14:25 ` Peter Hermann
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox