Be careful with log2() !!!!

Правка en1, от BlueBlade, 2018-01-08 00:00:45

What is the ans of floor of log2(288230376151711743) ??? Run a code with builtin log2() function, ans is 58 !!! Even google gives the ans 58 !!! Now write a code yourself to find the log2(x), and put x = 288230376151711743 . The actual answer is 57 !!!

couldn't get it !!!

Теги log2()

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский BlueBlade 2018-01-08 00:00:45 310 Initial revision (published)