Skip to content

Api > Mathf > Log()


Mathf.Log(number f)⚓︎

Returns the natural (base e) logarithm of a specified number.

Parameters:⚓︎

Name Type Description
f number Value

Returns:⚓︎

type Description
number the natural (base e) logarithm of a specified number.

Usage⚓︎

---@type number
local f;


local val0 = Mathf:Log(f)
a specified base. |

Usage⚓︎

---@type number
local f;

---@type number
local p;


local val0 = Mathf:Log(f, p)