comp.lang.ada
 help / color / mirror / Atom feed
From: Gautier Write-only <gautier@fakeaddress.nil>
Subject: Re: Simulation of fixed point in c WITH DIFFERENT BIT-WIDTH
Date: Wed, 02 Nov 2005 21:43:14 +0100
Date: 2005-11-02T21:43:14+01:00	[thread overview]
Message-ID: <436924E2.AA708392@fakeaddress.nil> (raw)
In-Reply-To: dka579$8fc$1@hudsucker.umdac.umu.se

Colin Paul Gloster wrote:
> 
> Mnamky did not say in
> news:1130690498.388857.225170@g49g2000cwa.googlegroups.com that the
> datatypes could take negative values, but anyway Gautier's
> type F1 is delta 2.0**(-11) range -1.0 .. 1.0;
> is a wasteful declaration which is bigger than Mnamky's "12-bit
> wordlength and 11-bit fraction".
> A two's complement signed 1 bit integer can have as its lowest value -1
> and as its greatest value 0.
> So
> type F3 is delta 2.0**(-11) range -1.0 .. 1.0 - 2.0**(-11);
> type F4 is delta 2.0**(-14) range -2.0 .. 2.0 - 2.0**(-14);
> are more appropiate datatypes.

Thank you for this precision.
Being sure that my approximation was quite rough, I had put the "something like" verbal precaution :-)
G.



  reply	other threads:[~2005-11-02 20:43 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-30 16:41 Simulation of fixed point in c WITH DIFFERENT BIT-WIDTH mnamky
2005-10-30 17:00 ` Dmitry A. Kazakov
2005-10-30 21:46 ` Gautier Write-only
2005-11-01  2:50 ` Steve
2005-11-02 10:42 ` Colin Paul Gloster
2005-11-02 20:43   ` Gautier Write-only [this message]
2005-11-03  6:13   ` Simon Wright
2005-11-03 10:46     ` Colin Paul Gloster
2005-11-03 13:47     ` Robert A Duff
2005-11-03 14:33       ` Dmitry A. Kazakov
2005-11-03 18:19         ` Jeffrey R. Carter
2005-11-03 20:55         ` Simon Wright
2005-11-02 10:57 ` Colin Paul Gloster
2005-11-02 14:49   ` Martin Krischik
2005-11-02 20:40   ` Gautier Write-only
replies disabled

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