LOG2

Purpose

This function returns the logarithm of n with base 2.

Syntax

log2::=

Usage Notes

The number n must be positive.

Example

SELECT LOG2(1024) LOG2;