LOG2
Syntax
LOG2(X)
Description
Returns the base-2 logarithm of X.
Examples
SELECT LOG2(4398046511104); +---------------------+ | LOG2(4398046511104) | +---------------------+ | 42 | +---------------------+ SELECT LOG2(65536); +-------------+ | LOG2(65536) | +-------------+ | 16 | +-------------+ SELECT LOG2(-100); +------------+ | LOG2(-100) | +------------+ | NULL | +------------+
This page is licensed: GPLv2, originally from fill_help_tables.sql
Last updated
Was this helpful?