REBOL Programming/negate

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

USAGE:[edit]

NEGATE number 

DESCRIPTION:[edit]

Changes the sign of a number.

NEGATE is an action value.

ARGUMENTS:[edit]

  • number -- (Type: number pair money time bitset)

SOURCE CODE[edit]

negate: native[
    "Changes the sign of a number." 
    number [number! pair! money! time! bitset!]
]