Skip to main content Skip to complementary content

LOG2

Returns the base 2 logarithm of x.

Syntax

LOG2(input)

Arguments

Name Type Mandatory
input numeric true

Returns

Returns a double value.


Examples

input output
2 1.0
16.0 4.0
0.5 -1.0
15 3.9068905956085187
0 '-Infinity'
-2 nan()

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!