log

Description

Returns the logarithm of a number to the base you specify.

Parameters

Return Type

Number

Example

number a = log(100, 10); print("a= " + a); number b = log(8, 2); print("b= " + b);

 

Prints:

a= 2;

b= 3;

 

See also

Peacock