Choose where you’d like to start

log()

Overview

The log() function takes a number as an argument, and returns the natural logarithm of that number.

Return Type

  • Decimal

Syntax

<variable> = <number>.log();

(OR)

<variable> = log(<number> );
ParameterDescriptionData type
<variable>Variable which will contain the returned value.DECIMAL
<number>

The number whose natural logarithm value will be returned.

Value which is equal to, or below 0, will return null.

NUMBER or DECIMAL

Examples

number = 90;
logValue = number.log();            // returns 4.499809670330265

Get Started Now

Execute