format
typescript
Mathf.Log(val, new_base)class: Mathf
description
Returns the logarithm of a specified value in a specified base.
parameter
| param_name | type | description |
|---|---|---|
| val | number | The specified value. |
| new_base | number? | The specified base. |
return
| type | description |
|---|---|
number | The logarithm of x in the specified base. |
code example
typescript
// The logarithm of x in the specified base.
let log = Mathf.log(8,2) //log=3