Skip to end of banner
Go to start of banner

log

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Availability

This routine is available since katl-commons 2.5 .


Syntax:

log(number, base)

Description:

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

Parameters:

ParameterTypeRequiredDescription
numberNumberYesThe positive real number for which you want the logarithm.
baseNumberYesThe base of the logarithm.

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:

 


  • No labels