Be careful with log2() !!!!

Revision en1, by 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 !!!

Tags log2()

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English BlueBlade 2018-01-08 00:00:45 310 Initial revision (published)