Error getting tags :
error 404Error getting tags :
error 404 log2 | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
log2
Basics
Expander triangle
Type
Function
Syntax
the log2 of number log2(number)
See Also
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the base-2 logarithm of a number.
Examples

log2(8) -- returns 3
log2(0.125) -- returns -3

Additional Comments
Expander triangle

Use the log2 function to obtain a base-2 logarithm.

Parameters:

The number is a positive number, or an expression that evaluates to a positive number.

Value:

The log2 function returns a number.

Comments:

The base-2 logarithm of a number is the power to which 2 must be raised to obtain the number: 2^log2(number) is equal to number.

User Comments
Expander triangle