Report question

Question: How do I calculate the closest power of 2 or 10 a number is?