* start Signed-off-by: Jess Frazelle <github@jessfraz.com> * update derive docs Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * add new docs Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * u[dates Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com>
35 lines
318 B
Markdown
35 lines
318 B
Markdown
---
|
|
title: "log2"
|
|
excerpt: "Computes the base 2 logarithm of the number."
|
|
layout: manual
|
|
---
|
|
|
|
Computes the base 2 logarithm of the number.
|
|
|
|
|
|
|
|
```js
|
|
log2(num: number) -> number
|
|
```
|
|
|
|
### Tags
|
|
|
|
* `math`
|
|
|
|
### Examples
|
|
|
|
```js
|
|
const myVar = log2(4)
|
|
```
|
|
|
|
### Arguments
|
|
|
|
* `num`: `number` (REQUIRED)
|
|
|
|
### Returns
|
|
|
|
`number`
|
|
|
|
|
|
|