Berserk Docs
Scalar FunctionsMath Functions

log2

Returns the base-2 logarithm of the numeric expression.

Syntax

log2(x)

Parameters

Prop

Type

Returns: real

Examples

Example 1

print log2(1024)
print_0 (real)
10.0

On this page