Skip to content
Reference > Methods

ln(value)

Definition

Double ln(Number value)

Description

Returns a Double that is the natural logarithm (base e) of a double value.

Parameter Definition

Name Type Description
value Number value to get natural log for

Examples

1
2
3
Double r1 = ln(0); // r1 == -Infinity
Double r2 = ln(10); // r2 == 2.302585092994046
Double r3 = ln(2.71828D); // r3 == 0.999999327347282