Altera_Forum
Honored Contributor
13 years agodecimal fraction
Hi,
How can I convert the decimal fraction to the mantissa format (IEEE). The MegaWizard function demands the decimal number in binary form (3 = 0011, for example). So how can I convert 0.3 to mantissa without multipling on 10 or 100 etc? Other way, if i starting to multiply so i don't net to use mantissa, am i wright? My final target is to apply the next math function y = 0.201x + 7.899 I supplying the "x" values. Can anybody help me with this question, please?