RE: [motoroladsp] fractional number
Frac16 and Fract32 are representations of the values +1.0 to -1.0 so to convert them to an integer, just multipy them by the range you wish to represent. For example: to have a range of -100 to 100, multiply the Fractxx value by 100. Another way to look at this is to think in terms of the
following equation:
So, multiplying a Fract16 by the maximum integer value yields the represented integer value. If your range of integer values happens to be +32767 to -32768, then the Fract16 value is the corresponding integer value!!! Jerry. -----Original Message-----
Hello All, I am having trouble working with fractions within my
project. I am
I am trying to create functions that will convert fractional
data
Does anyone know how to do this either in C or in assembly? Thanks, Brad ------------------------ Yahoo! Groups Sponsor
---------------------~-->
_____________________________________
_____________________________________
To Join: m...@yahoogroups.com To Post: m...@yahoogroups.com To Leave: m...@yahoogroups.com Archives: http://www.yahoogroups.com/group/motoroladsp More Groups: http://www.dsprelated.com/groups.php3
________________________________________________________________________
________________________________________________________________________ This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information visit http://www.messagelabs.com ________________________________________________________________________ |