Assuming I have a number of the form $a * 2^b$, I want to represent it in the form $c * 10^d$. I want to do this conversion without calculating neither $a*2^b$ or $2^b$
Currently, as per this question I'm using:
$d = ⌊b * (ln(2)/ln(10))⌋$ to calculate the exponent
$c = A * 10^{-d}*2^{b}$ to calculate the significant
However, this forces us to solve the exponents which for large enough $b$ is impractical (in a computer science environment). Is there any better way to do this conversion? If not, is there a good way to approximate it?