> For the complete documentation index, see [llms.txt](https://levelalfaomega.gitbook.io/unity-mugen/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://levelalfaomega.gitbook.io/unity-mugen/unity-mugen/trigger-list/log-math.md).

# Log (math)

Takes two arguments a and b, and returns the base-a logarithm of b.

### Format:&#x20;

&#x20;          Log(exp1,exp2)

### Arguments:&#x20;

&#x20;          exp1

&#x20;                     Expression giving the base of the logarithm. Must be positive.

&#x20;          exp2

&#x20;                     Expression giving the value to take the logarithm of. Must be positive.

### Return type:&#x20;

&#x20;          float

### Error conditions:

&#x20;          Returns bottom if either of exp1 or exp2 evaluates to bottom, or if either of exp1 or exp2 is not positive.

### Examples:

> ```
> value=log(2,64)
>   Sets value to the base 2 log of 64, which is 6.0.
> ```
