log2

Returns the base 2 logarithm of a numeric value.

Syntax

log2(value)

Parameters

Return value

A floating-point or a complex number.

Examples

log2(2**128)
127.99999999999999999999999999999999
log2(-1)
4.532360141827193809627682945716666*I