YoYo Games Wiki

logn(n,x)

From YoYoGames Wiki

Description

This function returns the log base n of x.

Arguments

Returns

  • (real): log base n of x

Explanation

logn is the log with base n.
eg: the function returns the number 'a' which solves this equation:
na=x where n and x are the first and second parameter of the function.

Examples

logn(2,16) returns 4
logn(3,81) also returns 4

See Also