Skip to end of banner
Go to start of banner

power

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

« Previous Version 5 Next »

Availability

This routine is available starting with katl-commons 2.5.


Syntax

power(base, exponent)

Description


Returns the number raised to the desired power.

 


Parameters

ParameterTypeRequiredDescription
numberNumberYesBase number.
baseNumberYesExponent the base number is raised to.

Return type

number

Example

number a = power(2, 3);
print("a= " + a);

Prints: a= 8;

See also


  • No labels