Small typo in Codercise F.1.3 - The nearest power of 2

There is a small typo in the firsy hint in Codercise F.1.3.

The text says:

Let’s look at simple example, we want to find the nearest power of 2 of x = 16 (which is 16, of course).

but instead it should say: “which is 4, of course”.

Hi @delacroissant , thanks for posting this!

While you are correct that 2^4 is indeed 16, the nearest number greater or equal to 16 that is a power of 2 is indeed 16.

Similarly, the nearest number greater or equal to 15 is also 16.

However, if x=17, then the nearest power of two greater or equal to x is in fact 32.

I see how the language is misleading, so I uploaded more clarified verbiage which should be available soon.

Thanks again for pointing this out!

Hi @dren, you are absolutely right! Even though I read it multiple times, I still thought the text referred to the exponent, rather than the number itself.

Thank you for your clarification!