## log(var x): var

Logarithm of **x** at base **e**.
### Parameters:

**x**
- any **var**.
### Returns:

**ln(x)**

### Example:

x = log(1); *// x is now 0*
x = log(2.178); *// x is now 1 (2.178 is an approximation to the constant e)*.
x = log(y)/log(2); *// x is log2(y), i.e. log(y) at base 2.*

### See also:

exp, pow,
sqrt
► latest
version online