Re: scaling coefficients for c
- From: roberson@xxxxxxxxxxxxxxxxxx (Walter Roberson)
- Date: Thu, 21 Sep 2006 14:30:34 +0000 (UTC)
In article <AI2dnYu9o4tKFo_YnZ2dnUVZ_r2dnZ2d@xxxxxxxxxxxx>,
sonos <sonos@xxxxxxxxxx> wrote:
[scaling coefficients]
and the same fraction in hex
0.961F9F01C
but how do I set a c variable in binary form for fractions?
unsigned long scaling = 0x961F9F01;
Note: The final 'C' of your fraction doesn't fit into a typical 32 bit
integral number. You will need to decide whether to truncate
(as shown here), or to round (final 1 becomes a 2), or to see if your
compiler supports variables longer than 32 bits and use a longer
fraction.
--
Okay, buzzwords only. Two syllables, tops. -- Laurie Anderson
.
- References:
- scaling coefficients for c
- From: sonos
- scaling coefficients for c
- Prev by Date: Re: C to Java Class Files compiler (AMPC version 1.5.1 released)
- Next by Date: Re: Looking for a library to split pathnames
- Previous by thread: Re: scaling coefficients for c
- Next by thread: Re: scaling coefficients for c
- Index(es):
Relevant Pages
|