DSPRelated.com
Forums

a normal real number representation in blackfin

Started by emailtoprs April 29, 2005
hi all
its making me mad.
just tell me how the hell do i represent a numbe say
12.34 in blackfin assembly. i know how to change .34 and 12 to their
corresponding floating point. but wat about 12.34. please its urgent



On Fri, 29 Apr 2005, emailtoprs wrote:

> hi all
> its making me mad.
> just tell me how the hell do i represent a numbe say
> 12.34 in blackfin assembly. i know how to change .34 and 12 to their
> corresponding floating point. but wat about 12.34. please its urgent

Blackfin is an integer/fixed point device. All numbers are less than one
in fractional notation. So you will need either a separate scale factor
(real floating point basicly) or you need to scale all your computations
to what ever the largest value will be (and the blackfin sees that as 1.0,
or .99999999 really)

Patience, persistence, truth,
Dr. mike