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 22047, because LOG2(INF)=2047 (ie. x=2LOG2(x)).
CROSS-REFERENCE