Math.log2
log2 — Returns the base 2 logarithm of a number.
Description
Math.log2(number number)
Parameters
Name | Description | Type | Default | Optional |
---|---|---|---|---|
number | number | No |
Examples
Example #1 – log2 example
log2 — Returns the base 2 logarithm of a number.
Math.log2(number number)
Name | Description | Type | Default | Optional |
---|---|---|---|---|
number | number | No |