Garry's Mod Wiki

Garry's Mod Wiki

  number math.log( number x, number base = e )

Description

With one argument, return the natural logarithm of x (to base e).

With two arguments, return the logarithm of x to the given base, calculated as log(x)/log(base).

Arguments

1 number x
The value to get the base from exponent from.
2 number base = e
The logarithmic base.

Returns

1 number
Logarithm of x to the given base

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...