From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: fixed point vs floating point
Date: Fri, 30 Sep 2011 18:52:23 +0200
Date: 2011-09-30T18:52:23+02:00 [thread overview]
Message-ID: <bw1zowq9qdbl$.1ca4tnms18bgu$.dlg@40tude.net> (raw)
In-Reply-To: j64qhi$f7h$1@speranza.aioe.org
On Fri, 30 Sep 2011 16:25:22 +0000 (UTC), tmoran@acm.org wrote:
> Intensities (eg color, sound) are always fractions, but they are usually
> represented as if they were integers ranging from 0 .. 15, or 0 .. 255,
> or 0 .. 65535. Code like
> Is_Bright := (Color > 128);
> is much more tedious and error-prone to change then
> Is_Bright := (Color > 0.5);
Right, but arithmetic of color-models intensities is not linear, so
although a fixed point type would be far more convenient for color stimuli,
it still would require redefinition of the operations.
An addition to your list: screen units (horizontal, vertical coordinates).
Traditionally rendering frameworks are using floating point for them, but I
think that fixed point could be more suitable with regard of anti-aliasing
issues etc.
to the OP: Integer type is a special case of decimal fixed point. So I
don't understand your desire to single out signed integer types them.
However, for the modular ones, it would indeed make sense.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2011-09-30 16:52 UTC|newest]
Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-29 10:25 fixed point vs floating point RasikaSrinivasan@gmail.com
2011-09-29 10:49 ` AdaMagica
2011-09-29 13:38 ` Martin
2011-09-30 10:17 ` Stephen Leake
2011-09-30 16:25 ` tmoran
2011-09-30 16:52 ` Dmitry A. Kazakov [this message]
2011-10-01 11:09 ` Stephen Leake
2011-09-30 19:26 ` tmoran
2011-09-30 22:31 ` tmoran
2011-10-01 13:37 ` RasikaSrinivasan@gmail.com
2011-10-02 14:19 ` Stephen Leake
-- strict thread matches above, loose matches on Subject: below --
1997-12-02 0:00 Robert Dewar
1997-12-02 0:00 ` Joe Gwinn
1997-12-02 0:00 ` Robert Dewar
1997-12-02 0:00 ` Matthew Heaney
1997-12-03 0:00 ` Robert Dewar
1997-12-03 0:00 ` Shmuel (Seymour J.) Metz
1997-12-03 0:00 ` Matthew Heaney
1997-12-04 0:00 ` Shmuel (Seymour J.) Metz
1997-12-04 0:00 ` Robert Dewar
1997-12-03 0:00 ` Robert Dewar
1997-12-03 0:00 ` Robert Dewar
1997-12-03 0:00 ` robin
1997-12-03 0:00 ` Robert Dewar
1997-12-02 0:00 ` Ken Garlington
1997-12-03 0:00 ` Joe Gwinn
1997-12-04 0:00 ` Robert Dewar
1997-12-04 0:00 ` Shmuel (Seymour J.) Metz
1997-12-03 0:00 ` robin
1997-11-28 0:00 tmoran
1997-11-28 0:00 ` Robert Dewar
1997-11-27 0:00 tmoran
1997-11-27 0:00 ` Robert Dewar
1997-11-29 0:00 ` Tarjei T. Jensen
1997-11-22 0:00 Matthew Heaney
1997-11-22 0:00 ` Tucker Taft
1997-11-22 0:00 ` Robert Dewar
1997-11-22 0:00 ` Matthew Heaney
1997-11-23 0:00 ` Geert Bosch
1997-11-23 0:00 ` Tom Moran
1997-11-25 0:00 ` John A. Limpert
1997-11-25 0:00 ` Robert Dewar
1997-11-25 0:00 ` Robert Dewar
1997-11-23 0:00 ` Matthew Heaney
1997-11-23 0:00 ` Robert Dewar
1997-11-24 0:00 ` Herman Rubin
1997-11-24 0:00 ` Robert Dewar
1997-11-25 0:00 ` Joe Gwinn
1997-11-25 0:00 ` Matthew Heaney
1997-11-25 0:00 ` Robert Dewar
1997-11-25 0:00 ` Joe Gwinn
1997-11-25 0:00 ` Robert Dewar
1997-11-26 0:00 ` Joe Gwinn
1997-11-26 0:00 ` Robert Dewar
1997-12-01 0:00 ` Joe Gwinn
1997-12-01 0:00 ` Robert Dewar
1997-12-01 0:00 ` Joe Gwinn
1997-12-03 0:00 ` robin
1997-11-26 0:00 ` William A Whitaker
1997-11-24 0:00 ` Geert Bosch
1997-11-24 0:00 ` Vince Del Vecchio
1997-11-24 0:00 ` Vince Del Vecchio
1997-12-03 0:00 ` robin
[not found] <9711221603.AA03295@nile.gnat.com>
1997-11-22 0:00 ` Ken Garlington
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox