Log2 (PQL)

Returns the base 2 logarithm of a number

  • Returned Output: Numeric
  • Library: PQL \ Common \ Math
  • Version: 2023.00.000
  • Compatibility:
    • Can be combined with and other PQL function throughout the application.
    • It CANNOT be used with MDX or VBA functions. But it can be used on MDX-based content in other parts of the application.

Syntax

Log2( <Numeric> )

* Click on the function's arguments above for more details on the input values.

Comments

Examples

This example returns "3". It refers to the binary logarithm of a number, which is the logarithm with base 2. It answers the question: "To what power must 2 be raised to get x?"

Log2(8)

This example returns "10":

Log2(1024)