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
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!!!
I am having trouble working with fractions within my
project. I am
I am trying to create functions that will convert fractional
Does anyone know how to do this either in C or in assembly?
------------------------ Yahoo! Groups Sponsor
To Join: m...@yahoogroups.com
To Post: m...@yahoogroups.com
To Leave: m...@yahoogroups.com
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