Garry's Mod Wiki

Revision Difference

math.log#523677

<function name="log" parent="math" type="libraryfunc"> <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). </description> <realm>Shared and Menu</realm> <args> <arg name="x" type="number">The value to get the base from exponent from.</arg> <arg name="base" type="number" default="\u0026amp;lt;span class=\u0022texhtml mvar\u0022\u0026amp;gt;\u0027\u0027\u0027\u0027\u0026amp;lt;/span\u0026amp;gt;">The logarithmic base.</arg> <arg name="base" type="number" default="e">The logarithmic base.</arg> </args> <rets> <ret name="" type="number">Logarithm of x to the given base</ret> </rets> </function>