LN2
Math
class propertyS2C Home
« Globals « Math « LN2
Description
Returns the natural logarithm of 2.
- Like all class properties
LN2
should be used on the class rather than an instance of the class.
Syntax
Signature | Description |
---|---|
Math.LN2 | Returns the natural logarithm of 2. |
Parameters
None.
Examples
The code below displays LN2
usage.
alert('Natural logarithm of 2: ' + Math.LN2); // 2.069314...
Related Tutorials
JavaScript Advanced Tutorials - Lesson 4 - Math