Returns the natural logarithm of the input value.


GML Code Example


Argument Description
n The input value.

Returns: Real


The natural logarithm ln(n) is the amount of time needed to reach a certain level of continuous growth, where n is the level reached. So if we want to find out how many time units we need to get 20 growth we would use ln(20) which returns 2.99 units of time to get that amount of growth.


GML Code Example

alarm[0] = ln(age) * room_speed;

The above code uses the natural logarithm of the value stored in the variable "age" to set an alarm.

No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here