L3DT users' wiki
Large 3D terrain generator

pow

Description

Calculate the value of a base raised to the power of an exponent.

Function prototype

double pow <double:base> <double:expon>

Arguments

Name Type Comment
base double The base value to be raised to the power of expon.
expon double The exponent.

Return value

A double-precision value corresponding to base raised to the power of expon.

Example

echo <zs:pow 2 12>

… the output of which is written to the event log by echo as:

4096

Comments

None.

See also

 
plugins/general/zeoscript/reference/functions/pow.txt · Last modified: 2017/08/31 04:59 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki