From: Simon Wright <simon@pushface.org>
Subject: Re: Simulation of fixed point in c WITH DIFFERENT BIT-WIDTH
Date: Thu, 03 Nov 2005 20:55:53 +0000
Date: 2005-11-03T20:55:53+00:00 [thread overview]
Message-ID: <m2r79xa1t2.fsf@grendel.local> (raw)
In-Reply-To: hbojdi82rqii$.1jkm8bqzmm7ik$.dlg@40tude.net
"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:
> The abstraction many people mean is actually:
>
> type Fraction is delta <> range -1.0 .. 1.0;
> for Fraction'Size use 16*8; -- Give me as much as you can
>
> So delta isn't exactly 2.0**(-15), it is 2.0/(2.0**16 + 1.0).
When dealing with legacy software/hardware, which is the only reason
I'd expect to use fixed point, one really does mean 2.0/(2.0**16)!
next prev parent reply other threads:[~2005-11-03 20:55 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
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 [this message]
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