scaling coefficients for c
- From: sonos <sonos@xxxxxxxxxx>
- Date: Thu, 21 Sep 2006 08:05:47 -0500
Hi,
I understand the requirement of scaling coefficients for fixed point
microcontrollers. However, I cannot seem to get past a simple issue... How
do I code a fraction in binary form for use in c code or asm language?
for example, consider the fraction in base 10:
dec == 0.58642
and the same fraction in binary
bin == 0.1001011
and the same fraction in hex
0.961F9F01C
but how do I set a c variable in binary form for fractions?
thanks
.
- Follow-Ups:
- Re: scaling coefficients for c
- From: Thad Smith
- Re: scaling coefficients for c
- From: Ancient_Hacker
- Re: scaling coefficients for c
- From: Walter Roberson
- Re: scaling coefficients for c
- From: Tom St Denis
- Re: scaling coefficients for c
- Prev by Date: Re: Richard Heathfield's TSP permutation algorithm
- Next by Date: Why pointers??
- Previous by thread: Looking for a library to split pathnames
- Next by thread: Re: scaling coefficients for c
- Index(es):
Relevant Pages
|