Gambas Documentation
Documents
ar
ca
cs
de
en
eo
es
fa
fr
hu
id
it
ja
ko
mk
nl
pl
pt
pt_BR
ru
sq
tr
vi
zh
zh_TW
Log2
Value
= Log2 (
Number
AS Float
)
AS Float
Computes the binary logarithm of a number.
Log2(x) =
Log
(x) / Log(2)
Examples
PRINT
Log2
(
16
)
4
See also
Logarithms & Exponentials Functions