REBOL Programming/abs

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

USAGE:[edit]

ABS value 

DESCRIPTION:[edit]

Returns the absolute value.

ABS is an action value.

ARGUMENTS[edit]

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

SOURCE CODE[edit]

abs: native[
    "Returns the absolute value." 
    value [number! pair! money! time!]
]

{{BookCat}}