.. _log2: LOG2 ==== +----------+-------------------------------------------------------------------+ | Syntax | LOG2 (x) | +----------+-------------------------------------------------------------------+ | Location | Math Package | +----------+-------------------------------------------------------------------+ This function returns the logarithm to the base 2 of the given number, which is calculated as LN(x)/LN(2). **Example** The greatest number which can be handled by SuperBASIC is returned by INF as 1.61585E616. This is exactly 2\ :sup:`2047`, because LOG2(INF)=2047 (ie. x=2\ :sup:`LOG2(x)`). **CROSS-REFERENCE** :ref:`log10`, :ref:`ln`, :ref:`inf`.