Forum Discussion
Altera_Forum
Honored Contributor
14 years agoExponentiation
People,I want to perform an exponentiation in base 10 but the exponent is a variable and this is causing an error in 10,638 at the compilation.I wonder if there is another way to do an exponentiation...
Altera_Forum
Honored Contributor
14 years agobcd(8 bits) => binary, needs
multiply MSB digit by 10 and add LSB digit binary(8 bits) => BCD divide by 100 then result is MSB digit, divide remainder by 10 the result is middle digit, last remainder is LSB digit Just off my head, needs verification