Skip to content
Vašek edited this page Jan 15, 2019 · 3 revisions

ln

This function will return natural logarithm of the input value

Syntax:

ln(n)
Argument Description
double n The value to make a natural logarithm of

Returns: double

Description:

This function returns how many times does the Euler's Number (approximately 2.718281828) have to be multiplied by itself to equal to n. It's an opposite function to function exp(n), it means that - ln(exp(n)) = n.

Example:

double value;
value = ln(5);

This function sets value to 1.609438.

Back to number_functions

Clone this wiki locally