REBOL Programming/power

From Wikibooks, open books for an open world
< REBOL Programming
Jump to: navigation, search

USAGE:[edit]

POWER number exponent 

DESCRIPTION:[edit]

Returns the first number raised to the second number.

POWER is an action value.

ARGUMENTS:[edit]

  • number -- (Type: number)
  • exponent -- (Type: number)

SOURCE CODE[edit]

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