Rebol Programming/power

From Wikibooks, open books for an open world
Jump to navigation Jump to search

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!]
]