Изменения рейтингов за последние раунды временно удалены. Скоро они будут возвращены. ×

log2 function limitations!!! be careful with this function

Правка en1, от imnasim3.1415, 2020-06-04 22:01:35

log2 function making problems with long integers. while for x=765228007342234864, log2(x)=59, which is correct. But while x=576460752303423487 log2(x) returns negative value..

why is this happening and how to solve it? any built-in functions to update this?

nevertheless, be careful with it

Теги logarithmic

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский imnasim3.1415 2020-06-04 22:01:35 366 Initial revision (published)