Jump to content

Rebol Programming/power

From Wikibooks, open books for an open world

USAGE:

[edit | edit source]
POWER number exponent 

DESCRIPTION:

[edit | edit source]

Returns the first number raised to the second number.

POWER is an action value.

ARGUMENTS:

[edit | edit source]
  • number -- (Type: number)
  • exponent -- (Type: number)

SOURCE CODE

[edit | edit source]
power: native[
    {Returns the first number raised to the second number.} 
    number [number!] 
    exponent [number!]
]