SecondBASIC Documentation v3

Home / Function Reference / Pow()

Palette()

Description: Raises the <base> by the <exponent>.

Syntax:

Pow(<base>,<exponent>)

Part Description
<base> Required. The number or variable to raise to the power of <exponent>.
<exponent> Required. The number to raise the <base> by.

Note: The use of the Pow() function or the ^ operator will inherit the math library.

Example:

        a = 3
        b = Pow(3, a)
        Print b