Altera_Forum
Honored Contributor
14 years agoFloating Point result to the decimal one
I would like to convert the Mantissa Result to the Decimal one with floating point included.
The steps I do: 1). I'm interested to divide two decimal numbers . For example 10 and 3 ===> 10/3 2). Using the Mega Wizard Core for conversion the decimal numbers to mantissa (ALTFP_CONVERT). 3). Dividing the mantissa result of 10 on the mantissa result of 3 by Mega Wizard Core (ALTFP_DIV). 4). The dividing result still presented in the mantissa form. 5). At the end i'd like to convert it back to the decimal form with floating point (to get 10/3 = 3.3). But the IP Core converting the result only into the decimal 3 and not into 3.3. The mantissa part was neglected, only the exponent part is taking the place. Am I making a mistake during the conversion steps? thanks